mirror of
https://github.com/StefBuwalda/ProjectIOT.git
synced 2025-10-30 11:19:57 +00:00
refactoring + execution time
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user