From e42a97eca46647a63c3991dbc9774ec4a47adc4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Tue, 14 Jan 2020 20:00:37 +0100 Subject: [PATCH] change return of addAmount in baruser for new frontend --- geruecht/baruser/routes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/geruecht/baruser/routes.py b/geruecht/baruser/routes.py index f809622..591281c 100644 --- a/geruecht/baruser/routes.py +++ b/geruecht/baruser/routes.py @@ -75,8 +75,10 @@ def _baradd(): type = 'credit' else: type = 'amount' + dic = user.toJSON() + dic['amount'] = abs(all) - return jsonify({"userId": user.uid, "amount": abs(all), 'locked': user.locked, 'type': type}) + return jsonify(dic) return jsonify({"error", "permission denied"}), 401 @baruser.route("/barGetUsers")