1
0
Fork 0
mirror of https://github.com/dancojocaru2000/foxbank.git synced 2025-02-22 23:39:36 +02:00

Allowed database file to be changed via env var

This commit is contained in:
Kenneth Bruen 2021-12-09 13:54:25 +02:00
parent a78d42ef1b
commit efb98ceb2e
Signed by: kbruen
GPG key ID: C1980A470C3EE5B1

View file

@ -2,7 +2,8 @@ import sqlite3
from flask import current_app, g from flask import current_app, g
DB_FILE = './data/db.sqlite' import os
DB_FILE = os.environ('DB_FILE', './data/db.sqlite')
get_return = sqlite3.Connection get_return = sqlite3.Connection