From 7f1de57ffebab3f9ddf314134272d559681850ce Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 5 Dec 2022 16:06:11 +0200 Subject: [PATCH] minor log fix --- files/routes/wrappers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/wrappers.py b/files/routes/wrappers.py index b2b312680c..9169ccb7d2 100644 --- a/files/routes/wrappers.py +++ b/files/routes/wrappers.py @@ -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')