From 811a5e0c009907cba39afcd954b3644f46adcec7 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 9 Apr 2021 14:32:47 +0200 Subject: [PATCH 1/1] Flatten the post data. --- src/archive/tasks.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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={ -- 2.20.1