This commit is contained in:
Aevann1 2021-11-16 02:18:41 +02:00
parent b9e9bc9954
commit 280692e2d2
2 changed files with 6 additions and 5 deletions

View file

@ -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")