From 6e389bccc7ef660c490c9f888c6bc3c501e32f77 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 2 Feb 2023 22:13:22 +0200 Subject: [PATCH] reduce print statements --- files/routes/users.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/files/routes/users.py b/files/routes/users.py index a8fa4771a..e9babe0b1 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -1291,14 +1291,11 @@ def claim_rewards(v): transaction.claimed = True g.db.add(transaction) - print(f'{v.username}: {v.marseybux}', flush=True) v.pay_account('marseybux', marseybux) - print(f'{v.username}: {v.marseybux}', flush=True) send_repeatable_notification(v.id, f"You have received {marseybux} Marseybux! You can use them to buy awards or hats in the [shop](/shop) or gamble them in the [casino](/casino).") g.db.add(v) - print(f'{v.username}: {v.patron}', flush=True) if highest_tier > v.patron: v.patron = highest_tier @@ -1307,7 +1304,6 @@ def claim_rewards(v): g.db.delete(badge) badge_grant(badge_id=20+highest_tier, user=v) - print(f'{v.username}: {v.patron}', flush=True) print(f'{v.username} rewards claimed successfully!', flush=True) @@ -1355,9 +1351,9 @@ def gumroad(): data = request.values ip = request.headers.get('CF-Connecting-IP') if ip == '34.193.146.117': - print('\n\n\n-----------------------\n\n\ngumroad: ' + ip) + print('\n\n\n-----------------------\n\n\n/gumroad: ' + ip) else: - print('\n\n\n-----------------------\n\n\ngumroad fail: ' + ip + '\n\n\n-----------------------\n\n\n', flush=True) + print('\n\n\n-----------------------\n\n\n/gumroad fail: ' + ip + '\n\n\n-----------------------\n\n\n', flush=True) abort(400) id = data['sale_id']