This commit is contained in:
Egor Matveev 2022-03-15 23:21:54 +03:00
parent 98bf83dbbf
commit b367df2a32

View File

@ -47,7 +47,7 @@ class Command(MessagingSupport):
with open(join(tempdir, 'meta.json'), 'w') as fs:
json.dump(task_data, fs)
for ef in ExtraFile.objects.filter(task=dump.task):
with open(join(tempdir, ef.id), 'wb') as fs:
with open(join(tempdir, str(ef.id)), 'wb') as fs:
fs.write(ef.bytes)
with ZipFile(dump_filename, 'w') as zipfile:
for file in listdir(tempdir):