statistics
This commit is contained in:
parent
fab4050884
commit
265f197042
2
xumu.py
2
xumu.py
|
@ -372,7 +372,7 @@ async def warning_statistics(deviceId):
|
|||
today_count = 0
|
||||
if len(values) != 0:
|
||||
today_count = values[0][0]
|
||||
return_data = {"totoal_count": total_count, "today_count": today_count}
|
||||
return_data = {"totoal_warning_count": total_count, "today_warning_count": today_count}
|
||||
return BaseResponse(data=return_data)
|
||||
except Exception as e:
|
||||
return BaseResponse(code=500, msg=str(e))
|
||||
|
|
Loading…
Reference in New Issue