master
Aevann1 2021-12-02 20:28:21 +02:00
parent 3b950cd93f
commit 894d6404b8
1 changed files with 1 additions and 1 deletions

View File

@ -870,7 +870,7 @@ def fp(v, fp):
v.fp = fp
users = g.db.query(User).filter(User.fp == fp, User.id != v.id).all()
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:
li = [v.id, u.id]
existing = g.db.query(Alt).filter(Alt.user1.in_(li), Alt.user2.in_(li)).first()