mirror of
https://github.com/Findus23/acronomy.git
synced 2024-09-16 12:13:44 +02:00
fix svg images
This commit is contained in:
parent
1f16bfa7f2
commit
1bdc9e73cd
1 changed files with 2 additions and 0 deletions
|
@ -33,6 +33,8 @@ class WikipediaLink(models.Model):
|
|||
self.title = summary.title
|
||||
if summary.image:
|
||||
filename = unquote(summary.image.split("/")[-1])
|
||||
if filename.endswith(".svg.png"):
|
||||
filename = summary.image.split("/")[-2]
|
||||
try:
|
||||
thumbnail = WikipediaImage.objects.get(filename=filename)
|
||||
except WikipediaImage.DoesNotExist:
|
||||
|
|
Loading…
Reference in a new issue