use new /data/ location for finance.db in prod
This commit is contained in:
2
db.py
2
db.py
@@ -5,7 +5,7 @@ import os
|
|||||||
|
|
||||||
def connect_db(as_object):
|
def connect_db(as_object):
|
||||||
if 'ENV' in os.environ and os.environ['ENV'] == "production":
|
if 'ENV' in os.environ and os.environ['ENV'] == "production":
|
||||||
conn = sqlite3.connect('/finance.db')
|
conn = sqlite3.connect('/data/finance.db')
|
||||||
else:
|
else:
|
||||||
conn = sqlite3.connect('./finance.db')
|
conn = sqlite3.connect('./finance.db')
|
||||||
if as_object:
|
if as_object:
|
||||||
|
|||||||
Reference in New Issue
Block a user