Flatten the post data.
authorRadek Czajka <rczajka@rczajka.pl>
Fri, 9 Apr 2021 12:32:47 +0000 (14:32 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Fri, 9 Apr 2021 12:32:47 +0000 (14:32 +0200)
src/archive/tasks.py

index 9d236db..c38e6c1 100644 (file)
@@ -81,10 +81,8 @@ class AudioFormatTask(Task):
             'parts_count': audiobook.parts_count,
             'source_sha1': audiobook.source_sha1,
 
             'parts_count': audiobook.parts_count,
             'source_sha1': audiobook.source_sha1,
 
-            'project': {
-                'description': audiobook.project.get_description(),
-                'icon': audiobook.project.get_icon_url(),
-            }
+            'project_description': audiobook.project.get_description(),
+            'project_icon': audiobook.project.get_icon_url(),
         }
         with open(path, 'rb') as f:
             api_call(user, UPLOAD_URL, data=data, files={
         }
         with open(path, 'rb') as f:
             api_call(user, UPLOAD_URL, data=data, files={