Roll back workaround to support pleroma

Fixed in previous commit.
pull/413/head
Ivan Habunek 2023-11-16 15:15:38 +01:00
rodzic fe48f9a17e
commit 2b8727bf09
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: F5F0623FF5EBCB3D
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -415,7 +415,7 @@ def _convert(field_type, value):
return datetime.strptime(value, "%Y-%m-%dT%H:%M:%S.%f%z")
if field_type == date:
return datetime.fromisoformat(value.replace('Z', '+00:00')).date()
return date.fromisoformat(value)
if get_origin(field_type) == list:
(inner_type,) = get_args(field_type)