remove unnecessary

pull/225/head
Aevann 2024-03-15 06:34:19 +02:00
parent 71630d5981
commit ded55229b7
1 changed files with 0 additions and 7 deletions

View File

@ -1334,13 +1334,6 @@ if KOFI_TOKEN:
verification_token = data['verification_token']
if verification_token != KOFI_TOKEN: abort(400)
ip = request.headers.get('CF-Connecting-IP')
if ip not in {'104.45.229.18', '137.117.16.235', '20.245.178.101'}:
print(STARS, flush=True)
print(f'/kofi fail: {ip}')
print(STARS, flush=True)
abort(400)
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']