Revert "Let's also thumbnail the now playing widget"

This reverts commit 76cc1f7b1c.
This commit is contained in:
2023-03-28 15:33:37 -04:00
parent 76cc1f7b1c
commit c4ddb4b51c
8 changed files with 29 additions and 36 deletions

View File

@ -1,5 +1,4 @@
import logging
from typing import Optional
from uuid import uuid4
from django.conf import settings
@ -94,13 +93,13 @@ class VideoGame(LongPlayScrobblableMixin):
return f" On {self.platforms.first()}"
@property
def primary_image(self) -> Optional["ImageField"]:
img = None
def primary_image_url(self) -> str:
url = ""
if self.cover:
img = self.cover
url = self.cover.url
if self.hltb_cover:
img = self.hltb_cover
return img
url = self.hltb_cover.url
return url
def get_absolute_url(self):
return reverse(