This commit is contained in:
Aevann1 2021-12-26 04:29:01 +02:00
parent c09ff3d2bc
commit 82d77d9c14
5 changed files with 83 additions and 128 deletions

View file

@ -44,8 +44,7 @@ def check_for_alts(current_id):
new_alt = Alt(user1=past_id, user2=current_id)
g.db.add(new_alt)
g.db.flush()
except BaseException:
pass
except: pass
alts = g.db.query(Alt)
otheralts = alts.filter(or_(Alt.user1 == past_id, Alt.user2 == past_id, Alt.user1 == current_id, Alt.user2 == current_id)).all()