diff --git a/PROJECT.org b/PROJECT.org index 4d7ab14..cbbf377 100644 --- a/PROJECT.org +++ b/PROJECT.org @@ -88,7 +88,7 @@ fetching and simple saving. *** Metadata sources **** Scraper -* Backlog [0/24] :vrobbler:project:personal: +* Backlog [1/25] :vrobbler:project:personal: ** TODO [#C] After transition to linux add curl_cffi as webpage scrapper again :webpages:metadata: ** TODO [#C] Create small utility to clean up tracks scrobbled with wonky playback times :bug:music:scrobbles: :PROPERTIES: @@ -619,6 +619,10 @@ The Edit log form should have from top to bottom: - Expansion ids (which should a multi-select widget of expansions for this game) - Location (which should be a drop down of BoardGameLocations for this user) +** DONE Fix test failure in discgolf app :discgolf:tests: +:PROPERTIES: +:ID: 813ae357-0568-5a4c-1a35-172e95d02740 +:END: * Version 59.1 [1/1] ** DONE Fix bug when expansions have no image :boardgames:bug: :PROPERTIES: diff --git a/vrobbler/apps/discgolf/utils.py b/vrobbler/apps/discgolf/utils.py index 4972310..c3112e1 100644 --- a/vrobbler/apps/discgolf/utils.py +++ b/vrobbler/apps/discgolf/utils.py @@ -12,7 +12,10 @@ logger = logging.getLogger(__name__) def _parse_udisc_datetime(raw: str) -> datetime: - return parse_datetime(raw) + dt = parse_datetime(raw) + if timezone.is_naive(dt): + return timezone.make_aware(dt) + return dt def _resolve_player(name: str, user_id: int) -> Person: