mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-08-24 17:48:35 +02:00
Refactor for heroku
This commit is contained in:
8
backend/data_adapters.py
Normal file
8
backend/data_adapters.py
Normal file
@@ -0,0 +1,8 @@
|
||||
def dict_from_row(row):
|
||||
return dict(zip(row.keys(), row))
|
||||
|
||||
def dict_from_rows(rows):
|
||||
outlist=[]
|
||||
for row in rows:
|
||||
outlist.append(dict_from_row(row))
|
||||
return outlist
|
Reference in New Issue
Block a user