From ed41a660fbdbbbe450357ca5f11cd2e9c1c92a30 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 6 Feb 2023 05:39:44 +0200 Subject: [PATCH] make gumroad warnings more prominent --- files/routes/users.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/files/routes/users.py b/files/routes/users.py index a66ca8676..24e67345c 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -1350,10 +1350,8 @@ if KOFI_TOKEN: def gumroad(): data = request.values ip = request.headers.get('CF-Connecting-IP') - if ip == '34.193.146.117': - print('\n\n\n-----------------------\n\n\n/gumroad: ' + ip) - else: - print('\n\n\n-----------------------\n\n\n/gumroad fail: ' + ip + '\n\n\n-----------------------\n\n\n', flush=True) + if ip != '34.193.146.117': + print(f'\n\n\n★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★\n\n\n/gumroad fail: {ip}\n\n\n★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★\n\n\n', flush=True) abort(400) id = data['sale_id']