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

Binary file not shown.

View File

@@ -1,6 +1,7 @@
blinker==1.6.2 blinker==1.6.2
click==8.1.7 click==8.1.7
Flask==2.3.3 Flask==2.3.3
Flask-Cors==4.0.0
flask-sock==0.6.0 flask-sock==0.6.0
h11==0.14.0 h11==0.14.0
itsdangerous==2.1.2 itsdangerous==2.1.2

View File

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