mirror of
https://github.com/FAUSheppy/atlantis-event-dispatcher
synced 2025-12-11 00:38:32 +01:00
fix: remove os.environ query for SQLITE location
This commit is contained in:
@@ -22,7 +22,7 @@ from sqlalchemy.sql.expression import func
|
|||||||
|
|
||||||
HOST = "icinga.atlantishq.de"
|
HOST = "icinga.atlantishq.de"
|
||||||
app = flask.Flask("Signal Notification Gateway")
|
app = flask.Flask("Signal Notification Gateway")
|
||||||
app.config["SQLALCHEMY_DATABASE_URI"] = os.environ["SQLITE"] or "sqlite:///sqlite.db"
|
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///sqlite.db"
|
||||||
db = SQLAlchemy(app)
|
db = SQLAlchemy(app)
|
||||||
|
|
||||||
class DispatchObject(db.Model):
|
class DispatchObject(db.Model):
|
||||||
|
|||||||
Reference in New Issue
Block a user