From: Radek Czajka Date: Fri, 9 Apr 2021 12:32:47 +0000 (+0200) Subject: Flatten the post data. X-Git-Url: https://git.mdrn.pl/audio.git/commitdiff_plain/811a5e0c009907cba39afcd954b3644f46adcec7 Flatten the post data. --- diff --git a/src/archive/tasks.py b/src/archive/tasks.py index 9d236db..c38e6c1 100644 --- a/src/archive/tasks.py +++ b/src/archive/tasks.py @@ -81,10 +81,8 @@ class AudioFormatTask(Task): '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={