mirror of
https://github.com/ihabunek/toot.git
synced 2024-09-29 04:35:54 -04:00
Roll back workaround to support pleroma
Fixed in previous commit.
This commit is contained in:
parent
fe48f9a17e
commit
2b8727bf09
@ -415,7 +415,7 @@ def _convert(field_type, value):
|
|||||||
return datetime.strptime(value, "%Y-%m-%dT%H:%M:%S.%f%z")
|
return datetime.strptime(value, "%Y-%m-%dT%H:%M:%S.%f%z")
|
||||||
|
|
||||||
if field_type == date:
|
if field_type == date:
|
||||||
return datetime.fromisoformat(value.replace('Z', '+00:00')).date()
|
return date.fromisoformat(value)
|
||||||
|
|
||||||
if get_origin(field_type) == list:
|
if get_origin(field_type) == list:
|
||||||
(inner_type,) = get_args(field_type)
|
(inner_type,) = get_args(field_type)
|
||||||
|
Loading…
Reference in New Issue
Block a user