forked from rDrama/rDrama
remove EG logging
parent
3896710fe7
commit
f4f283fb70
|
@ -73,15 +73,6 @@ def get_logged_in_user():
|
||||||
v.last_active = timestamp
|
v.last_active = timestamp
|
||||||
g.db.add(v)
|
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"))
|
g.is_api_or_xhr = bool((v and v.client) or request.headers.get("xhr"))
|
||||||
|
|
||||||
return v
|
return v
|
||||||
|
|
Loading…
Reference in New Issue