don't need to specify new volunteer_janitor rows are created now anymore

This commit is contained in:
Viet Than 2023-08-23 00:01:07 -04:00
parent 669c24e743
commit 110b3ed963

View file

@ -24,7 +24,6 @@ class VolunteerDutyJanitor(VolunteerDuty):
record = VolunteerJanitorRecord()
record.user_id = v.id
record.comment_id = item
record.recorded_datetimez = 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_datetimez = sqlalchemy.func.now()
record.result = VolunteerJanitorResult(int(val))
g.db.add(record)