One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
import sqlite3 as lite | |
def dict_factory(cursor, row): | |
d = {} | |
for idx, col in enumerate(cursor.description): d[col[0]] = row[idx] | |
return d | |
def get_data(db, query): | |
con = lite.connect(db) | |
con.row_factory = dict_factory |