fix clean_archive

pull/94/head
eric 2021-05-08 17:09:04 -04:00
parent 5a9a8699bd
commit 053bee4bca
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ def clean_archive(ebf):
for old_ebook in old_ebooks:
old_ebook.active = False
for oldebf in old_ebook.ebook_files.exclude(id=ebf.id):
if old_ebf.file != ebf.file:
if oldebf.file != ebf.file:
# save storage by deleting redundant files
oldebf.file.delete()
oldebf.file = ebf.file