forked from MarseyWorld/MarseyWorld
fix 500 error caused by 3ec2038caf
parent
92fa475acd
commit
166f6fb4ee
|
@ -560,7 +560,7 @@ class User(Base):
|
||||||
@lazy
|
@lazy
|
||||||
def all_twoway_blocks(self):
|
def all_twoway_blocks(self):
|
||||||
return set([x[0] for x in g.db.query(UserBlock.target_id).filter_by(user_id=self.id).all() + \
|
return set([x[0] for x in g.db.query(UserBlock.target_id).filter_by(user_id=self.id).all() + \
|
||||||
g.db.query(UserBlock.user_id).filter_by(target_id=self.id)])
|
g.db.query(UserBlock.user_id).filter_by(target_id=self.id).all()])
|
||||||
|
|
||||||
|
|
||||||
def validate_2fa(self, token):
|
def validate_2fa(self, token):
|
||||||
|
|
Loading…
Reference in New Issue