Commit 4fbf8ca1 authored by lcn's avatar lcn

BUG修复

parent 3eee08fd
......@@ -196,9 +196,9 @@ async def aver_elec_price_new15(start, end, point_id, cid, date_type):
last_ck = ChargeKwh()
last_sum_charge = last_datas.get("sum_charge")
last_sum_kwh = last_datas.get("sum_kwh")
this_ck.charge = round(last_sum_charge,
last_ck.charge = round(last_sum_charge,
2) if last_sum_charge else last_sum_charge
this_ck.kwh = round(last_sum_kwh, 2) if last_sum_kwh else last_sum_kwh
last_ck.kwh = round(last_sum_kwh, 2) if last_sum_kwh else last_sum_kwh
return this_ck, last_ck
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment