🏦 Database Change: convert created utc to datetimez for volunteer_janitor (#679)
This commit is contained in:
parent
3187a372fe
commit
4f8ba42738
7 changed files with 41 additions and 11 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue