diff --git a/files/helpers/const.py b/files/helpers/const.py index 756bd46690..87f9d4bd7b 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -107,6 +107,7 @@ if SITE == 'rdrama.net': RED_ID = 1577 LAWLZ_ID = 3833 LLM_ID = 253 + DAD_ID = 2513 elif SITE == "pcmemes.net": BASEDBOT_ACCOUNT = 800 NOTIFICATIONS_ACCOUNT = 1046 @@ -121,6 +122,7 @@ elif SITE == "pcmemes.net": RED_ID = 1577 LAWLZ_ID = 0 LLM_ID = 0 + DAD_ID = 0 else: NOTIFICATIONS_ACCOUNT = 1 AUTOJANNY_ACCOUNT = 2 @@ -134,6 +136,7 @@ else: RED_ID = 0 LAWLZ_ID = 0 LLM_ID = 0 + DAD_ID = 0 PUSHER_INSTANCE_ID = '02ddcc80-b8db-42be-9022-44c546b4dce6' PUSHER_KEY = environ.get("PUSHER_KEY", "").strip() diff --git a/files/routes/login.py b/files/routes/login.py index 475e53617d..d4a99f733b 100644 --- a/files/routes/login.py +++ b/files/routes/login.py @@ -27,9 +27,9 @@ def check_for_alts(current_id): session["history"] = list(past_accs) for past_id in session["history"]: - - if past_id == current_id: - continue + + if past_id == DAD_ID or current_id == DAD_ID: break + if past_id == current_id: continue check1 = g.db.query(Alt).filter_by( user1=current_id, user2=past_id).first() @@ -72,8 +72,6 @@ def check_for_alts(current_id): g.db.add(new_alt) g.db.flush() -# login post procedure - @app.post("/login") @limiter.limit("1/second")