forked from rDrama/rDrama
fix 500 error
parent
55daca6a20
commit
e213883f89
|
@ -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))
|
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'}
|
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
|
@lazy
|
||||||
def blocks(self, hole):
|
def blocks(self, hole):
|
||||||
|
|
Loading…
Reference in New Issue