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