Requirement Api + Null db

This commit is contained in:
2023-11-18 18:52:39 +01:00
parent b8117e07c5
commit 73b2d3f60b
3 changed files with 2 additions and 1 deletions

View File

@@ -95,7 +95,7 @@ def total():
data= Payment.get_all(get_db())
if data is not None:
total = sum(x.amount for x in data)
return jsonify(total), 200
return jsonify(float(total/100)), 200
else:
return jsonify(0);