forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-08-23 21:12:14 +02:00
parent 33b1b1288b
commit 087d4e0214
1 changed files with 15 additions and 14 deletions

View File

@ -42,6 +42,9 @@ def check_for_alts(current_id):
try: try:
new_alt = Alt(user1=past_id, user2=current_id) new_alt = Alt(user1=past_id, user2=current_id)
g.db.add(new_alt) g.db.add(new_alt)
except BaseException:
pass
otheralts = g.db.query(Alt).filter(or_(Alt.user1 == past_id, Alt.user2 == past_id, Alt.user1 == current_id, Alt.user2 == current_id)).all() otheralts = g.db.query(Alt).filter(or_(Alt.user1 == past_id, Alt.user2 == past_id, Alt.user1 == current_id, Alt.user2 == current_id)).all()
print(otheralts) print(otheralts)
for a in otheralts: for a in otheralts:
@ -56,8 +59,6 @@ def check_for_alts(current_id):
g.db.rollback() g.db.rollback()
print(e) print(e)
continue continue
except BaseException:
pass
# login post procedure # login post procedure