Fix sending totals to ES

This commit is contained in:
2023-05-17 07:17:36 +01:00
parent e934e7b1a2
commit 1a0f22740b
2 changed files with 5 additions and 4 deletions

View File

@@ -22,7 +22,8 @@ class Profit(LoginRequiredMixin, OTPRequiredMixin, ObjectRead):
)
)
for key in res.keys():
res[key] = round(res[key], 2)
if type(res[key]) != str:
res[key] = round(res[key], 2)
results = {
"Bank balance total": res["total_sinks_usd"],
"Platform balance total": res["total_usd_agora"],