forked from MarseyWorld/MarseyWorld
fdsfds
parent
3b950cd93f
commit
894d6404b8
|
@ -870,7 +870,7 @@ def fp(v, fp):
|
||||||
v.fp = fp
|
v.fp = fp
|
||||||
users = g.db.query(User).filter(User.fp == fp, User.id != v.id).all()
|
users = g.db.query(User).filter(User.fp == fp, User.id != v.id).all()
|
||||||
if v.email and v.is_activated:
|
if v.email and v.is_activated:
|
||||||
users += g.db.query(User).filter(User.email == email, User.is_activated, User.id != v.id).all()
|
users += g.db.query(User).filter(User.email == v.email, User.is_activated, User.id != v.id).all()
|
||||||
for u in users:
|
for u in users:
|
||||||
li = [v.id, u.id]
|
li = [v.id, u.id]
|
||||||
existing = g.db.query(Alt).filter(Alt.user1.in_(li), Alt.user2.in_(li)).first()
|
existing = g.db.query(Alt).filter(Alt.user1.in_(li), Alt.user2.in_(li)).first()
|
||||||
|
|
Loading…
Reference in New Issue