From b46bd80c972ea428ac3cc1979f13fafc3373328a Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 28 Apr 2023 12:02:10 +0200 Subject: [PATCH] move location in /kofi --- files/routes/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/users.py b/files/routes/users.py index ea9465f9b..2977d0b8d 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -1375,11 +1375,11 @@ if KOFI_TOKEN: @app.post("/kofi") @limiter.exempt def kofi(): - print(request.headers.get('CF-Connecting-IP'), flush=True) data = json.loads(request.values['data']) verification_token = data['verification_token'] if verification_token != KOFI_TOKEN: abort(400) + print(request.headers.get('CF-Connecting-IP'), flush=True) id = data['kofi_transaction_id'] created_utc = int(time.mktime(time.strptime(data['timestamp'].split('.')[0], "%Y-%m-%dT%H:%M:%SZ"))) type = data['type']