Compare commits

...

2 Commits

Author SHA1 Message Date
Jimmy d09c207c97 Add servers 2022-01-11 04:18:26 +00:00
Jimmy e5b2fb06f3 Update to 3.9 2022-01-11 04:18:03 +00:00
4 changed files with 6 additions and 5 deletions

View File

@ -1,4 +1,4 @@
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8-slim
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.9-slim
ENV DOCKER=1
COPY requirements.txt /app/requirements.txt

View File

@ -19,7 +19,7 @@ black = "*"
mypy = "*"
[requires]
python_version = "3.8"
python_version = "3.9"
[scripts]
test = "pytest app/test/test_main.py -s"

View File

@ -12,9 +12,9 @@ class TokenData(BaseModel):
class User(BaseModel):
username: str
email: Optional[str] = None
full_name: Optional[str] = None
disabled: Optional[bool] = None
servers: list
class UserInDB(User):
hashed_password: str

View File

@ -4,6 +4,7 @@
"full_name": "John Doe",
"email": "johndoe@example.com",
"hashed_password": "$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW",
"disabled": "False"
"disabled": "False",
"servers": ["a", "b"]
}
}