fix 500 error

master
Aevann 2024-02-16 01:04:12 +02:00
parent 55daca6a20
commit e213883f89
1 changed files with 2 additions and 2 deletions

View File

@ -469,9 +469,9 @@ class User(Base):
stealth = stealth - set(x[0] for x in g.db.query(StealthHoleUnblock.hole).filter_by(user_id=self.id))
if self.chud == 1: stealth = stealth - {'chudrama'}
public_use = [x[0] for x in g.db.query(Hole.name).filter_by(public_use=True)]
public_use = set(x[0] for x in g.db.query(Hole.name).filter_by(public_use=True))
return list(stealth) + [x[0] for x in g.db.query(HoleBlock.hole).filter_by(user_id=self.id)] - public_use
return stealth + set(x[0] for x in g.db.query(HoleBlock.hole).filter_by(user_id=self.id)) - public_use
@lazy
def blocks(self, hole):