forked from rDrama/rDrama
fdfd
parent
9a0159eb50
commit
e66b63b92f
|
@ -46,7 +46,6 @@ def check_for_alts(current_id):
|
||||||
pass
|
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)
|
|
||||||
for a in otheralts:
|
for a in otheralts:
|
||||||
try:
|
try:
|
||||||
new_alt = Alt(user1=a.user1, user2=past_id)
|
new_alt = Alt(user1=a.user1, user2=past_id)
|
||||||
|
@ -54,7 +53,6 @@ def check_for_alts(current_id):
|
||||||
g.db.flush()
|
g.db.flush()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
g.db.rollback()
|
g.db.rollback()
|
||||||
print(e)
|
|
||||||
continue
|
continue
|
||||||
for a in otheralts:
|
for a in otheralts:
|
||||||
try:
|
try:
|
||||||
|
@ -63,7 +61,6 @@ def check_for_alts(current_id):
|
||||||
g.db.flush()
|
g.db.flush()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
g.db.rollback()
|
g.db.rollback()
|
||||||
print(e)
|
|
||||||
continue
|
continue
|
||||||
for a in otheralts:
|
for a in otheralts:
|
||||||
try:
|
try:
|
||||||
|
@ -72,7 +69,6 @@ def check_for_alts(current_id):
|
||||||
g.db.flush()
|
g.db.flush()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
g.db.rollback()
|
g.db.rollback()
|
||||||
print(e)
|
|
||||||
continue
|
continue
|
||||||
for a in otheralts:
|
for a in otheralts:
|
||||||
try:
|
try:
|
||||||
|
@ -81,7 +77,6 @@ def check_for_alts(current_id):
|
||||||
g.db.flush()
|
g.db.flush()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
g.db.rollback()
|
g.db.rollback()
|
||||||
print(e)
|
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# login post procedure
|
# login post procedure
|
||||||
|
|
Loading…
Reference in New Issue