use env var for db
This commit is contained in:
parent
fe3a81e614
commit
21e05ba546
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ app = Quart(__name__)
|
||||||
|
|
||||||
@app.before_serving
|
@app.before_serving
|
||||||
async def app_before_serving():
|
async def app_before_serving():
|
||||||
db_path = sys.argv[1]
|
db_path = os.environ["DBPATH"]
|
||||||
app.db = await aiosqlite.connect(db_path)
|
app.db = await aiosqlite.connect(db_path)
|
||||||
app.db.row_factory = sqlite3.Row
|
app.db.row_factory = sqlite3.Row
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue