This commit is contained in:
yumoqing 2026-03-24 17:43:26 +08:00
parent 3c116f0ba9
commit 790ad27eb2
2 changed files with 1 additions and 2 deletions

View File

@ -184,7 +184,7 @@ class PricingProgram:
e = f'pricing_program({pptid}) can not find pricing_program' e = f'pricing_program({pptid}) can not find pricing_program'
exception(f) exception(f)
pp = pps[0] pp = pps[0]
fields = DictObject(**yaml.safe_load(pp.pricing_spec)) fields = yaml.safe_load(pp.pricing_spec)
newpricings = [] newpricings = []
for p in pricings: for p in pricings:
np = {} np = {}

View File

@ -64,7 +64,6 @@ def load_xlsx_pricing(xlsxpath):
for c, cell in enumerate(row): for c, cell in enumerate(row):
r.update({ws.cell(row=1, column=c+1).value:cell}) r.update({ws.cell(row=1, column=c+1).value:cell})
d.append(r) d.append(r)
print(d)
return d return d
if __name__ == '__main__': if __name__ == '__main__':