Skip to content

Commit

Permalink
default for driver set
Browse files Browse the repository at this point in the history
  • Loading branch information
corgijan committed Oct 21, 2024
1 parent ab841ca commit 2c8a1ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def page(name):

def get_sqlite_db():
if 'db' not in g:
g.db = sqlite3.connect('data.db')
g.db = sqlite3.connect(DATAFILE)
g.db.row_factory = sqlite3.Row
g.db.execute(
"CREATE TABLE IF NOT EXISTS recipes (id text PRIMARY KEY, title text NOT NULL, ingredients text, prep text, tags text, cvss real)")
Expand Down

0 comments on commit 2c8a1ad

Please sign in to comment.