usernotes got created_datetimez
This commit is contained in:
parent
0879033f55
commit
cdb30a963b
3 changed files with 56 additions and 3 deletions
|
@ -169,7 +169,7 @@ def volunteer_janitor_recalc(db: Session, diagnostics: bool = False):
|
|||
|
||||
usernotes_raw = db.query(UserNote) \
|
||||
.where(UserNote.tag.in_([UserTag.Warning, UserTag.Tempban, UserTag.Permban, UserTag.Spam, UserTag.Bot])) \
|
||||
.options(sqlalchemy.orm.load_only('reference_user', 'created_utc', 'tag'))
|
||||
.options(sqlalchemy.orm.load_only('reference_user', 'created_datetimez', 'tag'))
|
||||
|
||||
# Here we're trying to figure out whether modhats are actually warnings/bans
|
||||
# We don't have a formal connection between "a comment is bad" and "the user got a warning", so we're kind of awkwardly trying to derive it from our database
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue