feat: ensure_db() — автосоздание БД при старте

This commit is contained in:
2026-06-13 12:46:18 +04:00
parent c7fbc4dc07
commit b5c007044f
2 changed files with 36 additions and 10 deletions
+1
View File
@@ -9,6 +9,7 @@ load_dotenv()
class ContractsApp:
def __init__(self):
self.app = Flask(__name__)
db.ensure_db()
self.add_routes()
def add_routes(self):