fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07d18c1
)
Some images have no responsive thumbs.
author
Radek Czajka
<rczajka@rczajka.pl>
Mon, 5 Apr 2021 13:19:44 +0000
(15:19 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Mon, 5 Apr 2021 13:19:44 +0000
(15:19 +0200)
src/references/models.py
patch
|
blob
|
history
diff --git
a/src/references/models.py
b/src/references/models.py
index
c986471
..
9246ee3
100644
(file)
--- a/
src/references/models.py
+++ b/
src/references/models.py
@@
-65,7
+65,8
@@
class Entity(models.Model):
result_data['thumbwidth'],
result_data['thumbheight']
]
- image_data['responsiveUrls'] = result_data['responsiveUrls']
+ if 'responsiveUrls' in result_data:
+ image_data['responsiveUrls'] = result_data['responsiveUrls']
image_data_list.append(image_data)