Remove vestigial user ID special cases.

This commit is contained in:
TLSM 2022-11-06 17:17:23 -05:00 committed by Ben Rog-Wilhelm
parent 010c56a35e
commit 9de6f20dea
13 changed files with 11 additions and 94 deletions

View file

@ -202,7 +202,7 @@ class User(Base):
@lazy
def mod_date(self, sub):
if self.id == AEVANN_ID: return 1
if self.id == OWNER_ID: return 1
mod = g.db.query(Mod).filter_by(user_id=self.id, sub=sub).one_or_none()
if not mod: return None
return mod.created_utc