🏦 Database Change: convert created utc to datetimez for volunteer_janitor (#679)

This commit is contained in:
Viet Than 2023-08-25 01:00:09 -05:00 committed by GitHub
parent 3187a372fe
commit 4f8ba42738
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 41 additions and 11 deletions

View file

@ -24,7 +24,6 @@ class VolunteerDutyJanitor(VolunteerDuty):
record = VolunteerJanitorRecord()
record.user_id = v.id
record.comment_id = item
record.recorded_utc = sqlalchemy.func.now()
record.result = VolunteerJanitorResult.Pending
g.db.add(record)
@ -96,7 +95,6 @@ def submitted(v: User, key: str, val: str) -> None:
record = VolunteerJanitorRecord()
record.user_id = v.id
record.comment_id = key
record.recorded_utc = sqlalchemy.func.now()
record.result = VolunteerJanitorResult(int(val))
g.db.add(record)