same as last commit

master
Aevann 2023-08-23 00:39:04 +03:00
parent 3b6275d6d5
commit bccc2fb35f
1 changed files with 1 additions and 0 deletions

View File

@ -1351,6 +1351,7 @@ def fp(v, fp):
users += alts
for u in users:
li = [v.id, u.id]
g.db.flush()
existing = g.db.query(Alt).filter(Alt.user1.in_(li), Alt.user2.in_(li)).one_or_none()
if existing: continue
add_alt(user1=v.id, user2=u.id)