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:
23994f4
)
fix
author
Radek Czajka
<rczajka@rczajka.pl>
Sat, 23 May 2020 23:53:05 +0000
(
01:53
+0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Sat, 23 May 2020 23:53:05 +0000
(
01:53
+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
9533003
..
610a085
100644
(file)
--- a/
src/archive/migrations/0010_populate_license.py
+++ b/
src/archive/migrations/0010_populate_license.py
@@
-9,7
+9,7
@@
def populate_license(apps, schema_editor):
Audiobook = apps.get_model('archive.Audiobook')
licenses = {}
for a in Audiobook.objects.all():
Audiobook = apps.get_model('archive.Audiobook')
licenses = {}
for a in Audiobook.objects.all():
- if a.mp3_tags:
+ if a.mp3_
published_
tags:
tags = json.loads(a.mp3_published_tags)
uri = tags.get('license')
if not uri:
tags = json.loads(a.mp3_published_tags)
uri = tags.get('license')
if not uri: