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:
parent
a78d42ef1b
commit
efb98ceb2e
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue