From 51f3d5a4d7460039a45fb87babee3d0a707b77bb Mon Sep 17 00:00:00 2001 From: 2000-Trek Date: Fri, 9 Jun 2023 19:47:04 +0200 Subject: [PATCH] Added link to the list and changet int positiv if removed --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 7eacd63..e2f3835 100644 --- a/main.py +++ b/main.py @@ -72,6 +72,7 @@ def change(): return '

Pleas enter a number!

tags and user list' if change < 0: text = "removed from" + change = change * -1 elif change > 0: text = "added to" elif change == 0: @@ -79,7 +80,7 @@ def change(): c.execute(f"UPDATE users SET balance = balance + {change} WHERE id={user_id}") c.execute(f"SELECT * FROM users WHERE id={user_id}") user = c.fetchall()[0][1] - return f'

{change} was {text} {user}' + return f'

{change} was {text} {user}

back to the list>' @app.route("/addtag", methods=['GET']) def get_addtag_request():