diff --git a/utils/format_dates.py b/utils/format_dates.py index 1510108..45e0977 100755 --- a/utils/format_dates.py +++ b/utils/format_dates.py @@ -16,6 +16,7 @@ if os.getenv("SQLALCHEMY_DATABASE_DIALECT") == "sqlite": app.config['SQLALCHEMY_DATABASE_URI'] = "sqlite:///" + os.path.abspath(app.root_path + "/..") + "/" + os.getenv("SQLALCHEMY_DATABASE_SQLITE_FILENAME") else: exit("no SQLite database URI given; exiting") + db = SQLAlchemy() db.init_app(app)