forked from rDrama/rDrama
fix prev commit
parent
f36c5b50bc
commit
ddb641f865
|
@ -365,7 +365,7 @@ class User(Base):
|
||||||
|
|
||||||
@lazy
|
@lazy
|
||||||
def mod_date(self, sub):
|
def mod_date(self, sub):
|
||||||
if self.admin_level >= PERMS['MODS_EVERY_HOLE']: return 0
|
if self.admin_level >= PERMS['MODS_EVERY_HOLE']: return 1
|
||||||
|
|
||||||
mod_ts = g.db.query(Mod.created_utc).filter_by(user_id=self.id, sub=sub).one_or_none()
|
mod_ts = g.db.query(Mod.created_utc).filter_by(user_id=self.id, sub=sub).one_or_none()
|
||||||
if mod_ts is None:
|
if mod_ts is None:
|
||||||
|
|
Loading…
Reference in New Issue