osu-wayback/helpers/databaseHelper.py

5 lines
134 B
Python
Raw Normal View History

2019-03-11 07:51:05 +01:00
def dict_factory(cursor, row):
d = {}
for idx, col in enumerate(cursor.description):
d[col[0]] = row[idx]
return d