Compare commits

...

2 commits

Author SHA1 Message Date
78602c4ef9 Encoding in open 2023-03-24 19:28:56 +04:00
668c868a38 Updated deps 2023-03-24 19:28:29 +04:00
3 changed files with 8 additions and 7 deletions

View file

@ -45,12 +45,12 @@ def secret_key_check(name: SecretKey) -> None:
key_file = Path(f'/tmp/{name}')
if key_file.exists():
with key_file.open('rt') as f:
with key_file.open('rt', encoding='utf-8') as f:
key = f.read()
else:
key = secrets.token_hex(32)
with key_file.open('wt') as f:
with key_file.open('wt', encoding='utf-8') as f:
f.write(key)
settings_dict[name] = key

View file

@ -4,6 +4,7 @@ version = "1.0.0"
dependencies = [
"fastapi",
"uvicorn[standard]",
"gunicorn",
"jinja2",
"starlette-wtf",
"sqlalchemy",

View file

@ -1,15 +1,15 @@
fastapi~=0.93.0
starlette
pydantic
fastapi==0.95.0
starlette~=0.26.1
pydantic~=1.10.7
uvicorn[standard]~=0.21.0
uvicorn[standard]~=0.21.1
gunicorn~=20.1.0
jinja2~=3.1.2
starlette-wtf~=0.4.3
wtforms~=3.0.1
sqlalchemy~=2.0.5.post1
sqlalchemy~=2.0.7
sqlalchemy-utils~=0.40.0
mysqlclient~=2.1.1