Move 'deleted_utc' into 'state_user_deleted_utc' and change types.

This commit is contained in:
Ben Rog-Wilhelm 2023-06-11 04:12:14 -05:00
parent e03eef1a12
commit 5271e7c943
24 changed files with 141 additions and 83 deletions

View file

@ -80,8 +80,8 @@ class ScheduledSubmissionTask(RepeatableTask):
# HTML template for previewing a submitted task
@property
def deleted_utc(self) -> int:
return int(not self.task.enabled)
def state_user_deleted_utc(self) -> int:
return self.task.enabled and 1 or None
@functools.cached_property
def title_html(self) -> str: