Fix end of line
This commit is contained in:
parent
769b2f2af5
commit
e7b69c262b
|
@ -1,24 +1,24 @@
|
||||||
from contextlib import asynccontextmanager
|
from contextlib import asynccontextmanager
|
||||||
|
|
||||||
from fastapi import FastAPI
|
from fastapi import FastAPI
|
||||||
from fastapi.staticfiles import StaticFiles
|
from fastapi.staticfiles import StaticFiles
|
||||||
from .database import create_tables, delete_tables
|
from .database import create_tables, delete_tables
|
||||||
|
|
||||||
from .router import router as datings_router
|
from .router import router as datings_router
|
||||||
|
|
||||||
|
|
||||||
@asynccontextmanager
|
@asynccontextmanager
|
||||||
async def lifespan(app: FastAPI):
|
async def lifespan(app: FastAPI):
|
||||||
await create_tables()
|
await create_tables()
|
||||||
print("База готова")
|
print("База готова")
|
||||||
yield
|
yield
|
||||||
# await delete_tables()
|
# await delete_tables()
|
||||||
# print("База очищена")
|
# print("База очищена")
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
app = FastAPI(lifespan=lifespan)
|
app = FastAPI(lifespan=lifespan)
|
||||||
|
|
||||||
app.include_router(datings_router)
|
app.include_router(datings_router)
|
||||||
|
|
||||||
app.mount("/", StaticFiles(directory="public", html=True))
|
app.mount("/", StaticFiles(directory="public", html=True))
|
|
@ -1,35 +1,35 @@
|
||||||
[project]
|
[project]
|
||||||
name = "LeraFoxQueen"
|
name = "LeraFoxQueen"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = ""
|
description = ""
|
||||||
authors = [
|
authors = [
|
||||||
{ name = "Valeria Fadeeva" },
|
{ name = "Valeria Fadeeva" },
|
||||||
{ email = "valeria.fadeeva.me@gmail.com" },
|
{ email = "valeria.fadeeva.me@gmail.com" },
|
||||||
]
|
]
|
||||||
license = { text = "AGPL3" }
|
license = { text = "AGPL3" }
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.13"
|
requires-python = ">=3.13"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"hypercorn (>=0.17.3,<0.18.0)",
|
"hypercorn (>=0.17.3,<0.18.0)",
|
||||||
"unicorn (>=2.1.3,<3.0.0)",
|
"unicorn (>=2.1.3,<3.0.0)",
|
||||||
"uvicorn (>=0.34.3,<0.35.0)",
|
"uvicorn (>=0.34.3,<0.35.0)",
|
||||||
"fastapi (>=0.115.12,<0.116.0)",
|
"fastapi (>=0.115.12,<0.116.0)",
|
||||||
"aiosqlite (>=0.21.0,<0.22.0)",
|
"aiosqlite (>=0.21.0,<0.22.0)",
|
||||||
"sqlalchemy (>=2.0.41,<3.0.0)",
|
"sqlalchemy (>=2.0.41,<3.0.0)",
|
||||||
"pydantic (>=2.11.5,<3.0.0)",
|
"pydantic (>=2.11.5,<3.0.0)",
|
||||||
"annotated-types (>=0.7.0,<0.8.0)",
|
"annotated-types (>=0.7.0,<0.8.0)",
|
||||||
"typing-extensions (>=4.14.0,<5.0.0)",
|
"typing-extensions (>=4.14.0,<5.0.0)",
|
||||||
"python-multipart (>=0.0.20,<0.0.21)",
|
"python-multipart (>=0.0.20,<0.0.21)",
|
||||||
"anyio (>=4.9.0,<5.0.0)",
|
"anyio (>=4.9.0,<5.0.0)",
|
||||||
"click (>=8.2.1,<9.0.0)",
|
"click (>=8.2.1,<9.0.0)",
|
||||||
"colorama (>=0.4.6,<0.5.0)",
|
"colorama (>=0.4.6,<0.5.0)",
|
||||||
"greenlet (>=3.2.2,<4.0.0)",
|
"greenlet (>=3.2.2,<4.0.0)",
|
||||||
"h11 (>=0.16.0,<0.17.0)",
|
"h11 (>=0.16.0,<0.17.0)",
|
||||||
"idna (>=3.10,<4.0)",
|
"idna (>=3.10,<4.0)",
|
||||||
"sniffio (>=1.3.1,<2.0.0)",
|
"sniffio (>=1.3.1,<2.0.0)",
|
||||||
]
|
]
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core>=2.0.0,<3.0.0"]
|
requires = ["poetry-core>=2.0.0,<3.0.0"]
|
||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry.core.masonry.api"
|
||||||
package-mode = false
|
package-mode = false
|
||||||
|
|
Loading…
Reference in New Issue