bugfix
This commit is contained in:
parent
e6c8cdacd6
commit
d65bc52f07
@ -209,7 +209,7 @@ class PricingProgram:
|
|||||||
'pricings': newpricings
|
'pricings': newpricings
|
||||||
}
|
}
|
||||||
debug(f'{d=}')
|
debug(f'{d=}')
|
||||||
ppt.pricing_data = yaml.dump(d)
|
ppt.pricing_data = yaml.dump(d, allow_unicode=True)
|
||||||
await sor.U('pricing_program_timing', {
|
await sor.U('pricing_program_timing', {
|
||||||
'id': ppt.id,
|
'id': ppt.id,
|
||||||
'pricing_data': ppt.pricing_data
|
'pricing_data': ppt.pricing_data
|
||||||
@ -246,7 +246,7 @@ class PricingProgram:
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def pp_app2db(pp):
|
def pp_app2db(pp):
|
||||||
try:
|
try:
|
||||||
pp.pricing_spec = yaml.dump(pp.pricing_spec)
|
pp.pricing_spec = yaml.dump(pp.pricing_spec, allow_unicode=True)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
e = f'{pp.pricing_spec}:导出到yaml失败'
|
e = f'{pp.pricing_spec}:导出到yaml失败'
|
||||||
exception(e)
|
exception(e)
|
||||||
@ -264,7 +264,7 @@ class PricingProgram:
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def ppt_app2db(ppt):
|
def ppt_app2db(ppt):
|
||||||
try:
|
try:
|
||||||
ppt.pricing_data = yaml.dump(ppt.pricing_data)
|
ppt.pricing_data = yaml.dump(ppt.pricing_data, allow_unicode=True)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
e = f'{ppt.pricing_data}:yaml数据格式错误'
|
e = f'{ppt.pricing_data}:yaml数据格式错误'
|
||||||
exception(e)
|
exception(e)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user