move stuff into tables.py.
This commit is contained in:
@@ -5,7 +5,7 @@ from sqlite3 import connect, Connection, Cursor
|
||||
def get_db():
|
||||
db = getattr(g, "_database", None)
|
||||
if db is None:
|
||||
db = connect("/data/tables.db")
|
||||
db = g._database = connect("/data/tables.db")
|
||||
return db
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user