forked from rDrama/rDrama
stop using eg.log
parent
b5ab2b5436
commit
7e387aa404
|
@ -76,12 +76,9 @@ def get_logged_in_user():
|
||||||
if SITE == 'rdrama.net' and request.headers.get("Cf-Ipcountry") == 'EG':
|
if SITE == 'rdrama.net' and request.headers.get("Cf-Ipcountry") == 'EG':
|
||||||
if v:
|
if v:
|
||||||
if v.id != AEVANN_ID and not v.username.startswith('Aev'):
|
if v.id != AEVANN_ID and not v.username.startswith('Aev'):
|
||||||
with open(f"{LOG_DIRECTORY}/eg.log", "a+", encoding="utf-8") as f:
|
ip = request.headers.get('CF-Connecting-IP')
|
||||||
f.seek(0)
|
text = f'@{v.username}, {ip}'
|
||||||
ip = request.headers.get('CF-Connecting-IP')
|
send_notification(AEVANN_ID, text)
|
||||||
if f'@{v.username}, ' not in f.read():
|
|
||||||
t = time.strftime("%d/%B/%Y %H:%M:%S UTC", time.gmtime(time.time()))
|
|
||||||
log_file(f'@{v.username}, {v.truescore}, {ip}, {t}\n', 'eg.log')
|
|
||||||
else:
|
else:
|
||||||
abort(404)
|
abort(404)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue