uploads: Avoid redefinition of a variable.

Mypy disallows redefinition of the same variable with a different type.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
Zixuan James Li 2022-07-18 15:58:47 -04:00 committed by Tim Abbott
parent 036a90f375
commit 6f42b1c75c
1 changed files with 3 additions and 3 deletions

View File

@ -71,9 +71,9 @@ def do_delete_old_unclaimed_attachments(weeks_ago: int) -> None:
for attachment in old_unclaimed_attachments:
delete_message_image(attachment.path_id)
attachment.delete()
for attachment in old_unclaimed_archived_attachments:
delete_message_image(attachment.path_id)
attachment.delete()
for archived_attachment in old_unclaimed_archived_attachments:
delete_message_image(archived_attachment.path_id)
archived_attachment.delete()
def check_attachment_reference_change(