refactoring + execution time

This commit is contained in:
2025-04-25 16:33:01 +02:00
parent 8d0d9c4321
commit f22ea02e59
11 changed files with 55 additions and 51 deletions

View File

@@ -1,6 +1,7 @@
from flask import Flask
from flask_migrate import Migrate
from flask_sqlalchemy import SQLAlchemy
from pyplatex import ANPR # type: ignore
# Web Server
app = Flask(__name__)
@@ -8,7 +9,11 @@ app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///data.sqlite"
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
app.config["SECRET_KEY"] = "bvjchsygvduycgsyugc"
# ORM
db = SQLAlchemy(app)
migrate = Migrate(app, db)
# ANPR instance
anpr = ANPR()