Fix sending totals to ES
This commit is contained in:
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user