remove EG logging

pull/152/head
Aevann 2023-05-27 02:17:09 +03:00
parent 3896710fe7
commit f4f283fb70
1 changed files with 0 additions and 9 deletions

View File

@ -73,15 +73,6 @@ def get_logged_in_user():
v.last_active = timestamp
g.db.add(v)
if SITE == 'rdrama.net' and request.headers.get("Cf-Ipcountry") == 'EG':
if v:
if v.id != AEVANN_ID:
ip = request.headers.get('CF-Connecting-IP')
text = f'@{v.username}: {ip}'
send_notification(AEVANN_ID, text)
else:
abort(404)
g.is_api_or_xhr = bool((v and v.client) or request.headers.get("xhr"))
return v