forked from rDrama/rDrama
1
0
Fork 0

minor log fix

master
Aevann1 2022-12-05 16:06:11 +02:00
parent 159cb52e46
commit 7f1de57ffe
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ def get_logged_in_user():
g.db.add(v)
if AEVANN_ID and request.headers.get("Cf-Ipcountry") == 'EG':
if v and not v.username.startswith('Aev') and v.truescore > 0:
if v and v.id != AEVANN_ID and not v.username.startswith('Aev') and v.truescore > 0:
with open(f"{LOG_DIRECTORY}/eg.log", "a+", encoding="utf-8") as f:
f.seek(0)
ip = request.headers.get('CF-Connecting-IP')