Private
Public Access
1
0

fixing zip file processing

This commit is contained in:
Sander Roosendaal
2019-08-06 20:42:05 +02:00
parent 3208c2d8a9
commit 7e284690de
4 changed files with 62 additions and 1 deletions

View File

@@ -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()):