statistics

This commit is contained in:
xyj 2024-02-20 11:43:53 +08:00
parent fab4050884
commit 265f197042
1 changed files with 1 additions and 1 deletions

View File

@ -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))