From b367df2a321db296afe87b4555ec99b342692af4 Mon Sep 17 00:00:00 2001 From: Egor Matveev Date: Tue, 15 Mar 2022 23:21:54 +0300 Subject: [PATCH] deploy --- daemons/management/commands/file_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemons/management/commands/file_generator.py b/daemons/management/commands/file_generator.py index b13271f..c801a2b 100644 --- a/daemons/management/commands/file_generator.py +++ b/daemons/management/commands/file_generator.py @@ -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):