fnp
/
audio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bbe744d
)
fix
author
Radek Czajka
<rczajka@rczajka.pl>
Sat, 23 May 2020 23:56:16 +0000
(
01:56
+0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Sat, 23 May 2020 23:56:16 +0000
(
01:56
+0200)
src/archive/migrations/0010_populate_license.py
patch
|
blob
|
history
diff --git
a/src/archive/migrations/0010_populate_license.py
b/src/archive/migrations/0010_populate_license.py
index
610a085
..
caec303
100644
(file)
--- a/
src/archive/migrations/0010_populate_license.py
+++ b/
src/archive/migrations/0010_populate_license.py
@@
-11,7
+11,7
@@
def populate_license(apps, schema_editor):
for a in Audiobook.objects.all():
if a.mp3_published_tags:
tags = json.loads(a.mp3_published_tags)
for a in Audiobook.objects.all():
if a.mp3_published_tags:
tags = json.loads(a.mp3_published_tags)
- uri = tags.get('license')
+ uri = tags.get('
tags', {}).get('
license')
if not uri:
continue
if uri not in licenses:
if not uri:
continue
if uri not in licenses: