[discgolf] Fix breaking tests
This commit is contained in:
@ -88,7 +88,7 @@ fetching and simple saving.
|
|||||||
*** Metadata sources
|
*** Metadata sources
|
||||||
**** Scraper
|
**** 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] 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:
|
** TODO [#C] Create small utility to clean up tracks scrobbled with wonky playback times :bug:music:scrobbles:
|
||||||
:PROPERTIES:
|
: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)
|
- 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)
|
- 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]
|
* Version 59.1 [1/1]
|
||||||
** DONE Fix bug when expansions have no image :boardgames:bug:
|
** DONE Fix bug when expansions have no image :boardgames:bug:
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
|
|||||||
@ -12,7 +12,10 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
|
|
||||||
def _parse_udisc_datetime(raw: str) -> datetime:
|
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:
|
def _resolve_player(name: str, user_id: int) -> Person:
|
||||||
|
|||||||
Reference in New Issue
Block a user