mirror of
https://github.com/StefBuwalda/dashboard_test.git
synced 2025-10-30 03:09:59 +00:00
Added logs for each ping. Contains no data yet and estimates 15.7 mil rows a year. Considering adding log aggregation. Moved some folders and files into mem folder due to circular import.
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
from typing import Any, Optional
|
||||
from flask import Flask
|
||||
from flask_sqlalchemy import SQLAlchemy
|
||||
from flask_migrate import Migrate
|
||||
|
||||
|
||||
class service:
|
||||
@@ -78,3 +81,10 @@ services: list[service] = [
|
||||
id=11, url="https://unifi.local/", label="Unifi Server", public=False
|
||||
),
|
||||
]
|
||||
|
||||
# Flask app to serve status
|
||||
app = Flask(__name__)
|
||||
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///app.db"
|
||||
|
||||
db = SQLAlchemy(app=app)
|
||||
migration = Migrate(app=app, db=db)
|
||||
|
||||
Reference in New Issue
Block a user