reorder code

pull/225/head
Aevann 2024-03-02 12:20:35 +02:00
parent 15c38facfe
commit 527d33b81b
1 changed files with 3 additions and 2 deletions

View File

@ -57,10 +57,11 @@ def add_alt(user1, user2):
if session.get("GLOBAL"):
return
if AEVANN_ID in (user1, user2):
return
li = [user1, user2]
if AEVANN_ID in li:
return
g.db.flush()
existing = g.db.query(Alt).filter(Alt.user1.in_(li), Alt.user2.in_(li)).one_or_none()
if not existing: