fnp
/
audio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6eabd35
)
Flatten the post data.
author
Radek Czajka
<rczajka@rczajka.pl>
Fri, 9 Apr 2021 12:32:47 +0000
(14:32 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Fri, 9 Apr 2021 12:32:47 +0000
(14:32 +0200)
src/archive/tasks.py
patch
|
blob
|
history
diff --git
a/src/archive/tasks.py
b/src/archive/tasks.py
index
9d236db
..
c38e6c1
100644
(file)
--- 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={