dfssdf
This commit is contained in:
parent
b9e9bc9954
commit
280692e2d2
2 changed files with 6 additions and 5 deletions
|
@ -107,6 +107,7 @@ if SITE == 'rdrama.net':
|
||||||
RED_ID = 1577
|
RED_ID = 1577
|
||||||
LAWLZ_ID = 3833
|
LAWLZ_ID = 3833
|
||||||
LLM_ID = 253
|
LLM_ID = 253
|
||||||
|
DAD_ID = 2513
|
||||||
elif SITE == "pcmemes.net":
|
elif SITE == "pcmemes.net":
|
||||||
BASEDBOT_ACCOUNT = 800
|
BASEDBOT_ACCOUNT = 800
|
||||||
NOTIFICATIONS_ACCOUNT = 1046
|
NOTIFICATIONS_ACCOUNT = 1046
|
||||||
|
@ -121,6 +122,7 @@ elif SITE == "pcmemes.net":
|
||||||
RED_ID = 1577
|
RED_ID = 1577
|
||||||
LAWLZ_ID = 0
|
LAWLZ_ID = 0
|
||||||
LLM_ID = 0
|
LLM_ID = 0
|
||||||
|
DAD_ID = 0
|
||||||
else:
|
else:
|
||||||
NOTIFICATIONS_ACCOUNT = 1
|
NOTIFICATIONS_ACCOUNT = 1
|
||||||
AUTOJANNY_ACCOUNT = 2
|
AUTOJANNY_ACCOUNT = 2
|
||||||
|
@ -134,6 +136,7 @@ else:
|
||||||
RED_ID = 0
|
RED_ID = 0
|
||||||
LAWLZ_ID = 0
|
LAWLZ_ID = 0
|
||||||
LLM_ID = 0
|
LLM_ID = 0
|
||||||
|
DAD_ID = 0
|
||||||
|
|
||||||
PUSHER_INSTANCE_ID = '02ddcc80-b8db-42be-9022-44c546b4dce6'
|
PUSHER_INSTANCE_ID = '02ddcc80-b8db-42be-9022-44c546b4dce6'
|
||||||
PUSHER_KEY = environ.get("PUSHER_KEY", "").strip()
|
PUSHER_KEY = environ.get("PUSHER_KEY", "").strip()
|
||||||
|
|
|
@ -28,8 +28,8 @@ def check_for_alts(current_id):
|
||||||
|
|
||||||
for past_id in session["history"]:
|
for past_id in session["history"]:
|
||||||
|
|
||||||
if past_id == current_id:
|
if past_id == DAD_ID or current_id == DAD_ID: break
|
||||||
continue
|
if past_id == current_id: continue
|
||||||
|
|
||||||
check1 = g.db.query(Alt).filter_by(
|
check1 = g.db.query(Alt).filter_by(
|
||||||
user1=current_id, user2=past_id).first()
|
user1=current_id, user2=past_id).first()
|
||||||
|
@ -72,8 +72,6 @@ def check_for_alts(current_id):
|
||||||
g.db.add(new_alt)
|
g.db.add(new_alt)
|
||||||
g.db.flush()
|
g.db.flush()
|
||||||
|
|
||||||
# login post procedure
|
|
||||||
|
|
||||||
|
|
||||||
@app.post("/login")
|
@app.post("/login")
|
||||||
@limiter.limit("1/second")
|
@limiter.limit("1/second")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue