use env var for db

This commit is contained in:
Luna 2022-08-29 00:29:01 -03:00
parent fe3a81e614
commit 21e05ba546
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ app = Quart(__name__)
@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.row_factory = sqlite3.Row