fixing zip file processing
This commit is contained in:
@@ -255,7 +255,7 @@ class Command(BaseCommand):
|
||||
except Message.DoesNotExist:
|
||||
attachment.delete()
|
||||
for rower in rowers:
|
||||
if extension == 'zip':
|
||||
if 'zip' in extension:
|
||||
try:
|
||||
zip_file = zipfile.ZipFile(attachment.document)
|
||||
for id,filename in enumerate(zip_file.namelist()):
|
||||
|
||||
Reference in New Issue
Block a user