Skip to content
Snippets Groups Projects
Commit e63b73af authored by Emmanuel Viennet's avatar Emmanuel Viennet
Browse files

Merge pull request 'Fix: API user edit date_expiration' (#1007) from lyanis/ScoDoc:api into master

parents 901367e4 685c5eb2
No related branches found
No related tags found
No related merge requests found
......@@ -350,7 +350,7 @@ class User(UserMixin, ScoDocModel):
date_expiration = args.get("date_expiration")
if isinstance(date_expiration, str):
args["date_expiration"] = (
datetime.datetime.fromisoformat(date_expiration)
datetime.fromisoformat(date_expiration)
if date_expiration
else None
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment