added scan page

This commit is contained in:
2025-04-17 15:02:08 +03:00
parent fc355333cb
commit 9244ff90f6
8 changed files with 243 additions and 24 deletions

View File

@@ -1,5 +1,6 @@
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from datetime import datetime
db = SQLAlchemy()
@@ -14,6 +15,9 @@ def create_app():
from .routes import bp
app.register_blueprint(bp)
# Add 'now' function to Jinja2 globals
app.jinja_env.globals['now'] = datetime.now
with app.app_context():
db.create_all() # Create database tables if they don't exist