mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Fixes for storing timestamp
This commit is contained in:
parent
05c4b6012e
commit
48c756b01d
3 changed files with 16 additions and 13 deletions
|
|
@ -1,6 +1,5 @@
|
|||
# Copyright (c) 2018 Ultimaker B.V.
|
||||
# Cura is released under the terms of the LGPLv3 or higher.
|
||||
from datetime import datetime
|
||||
from typing import Optional
|
||||
|
||||
|
||||
|
|
@ -38,13 +37,13 @@ class AuthenticationResponse(BaseModel):
|
|||
expires_in = None # type: Optional[str]
|
||||
scope = None # type: Optional[str]
|
||||
err_message = None # type: Optional[str]
|
||||
received_at = None # type: Optional[datetime]
|
||||
received_at = None # type: Optional[str]
|
||||
|
||||
|
||||
# Response status template.
|
||||
class ResponseStatus(BaseModel):
|
||||
code = 200 # type: int
|
||||
message = "" # type str
|
||||
message = "" # type: str
|
||||
|
||||
|
||||
# Response data template.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue