mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-07-05 09:41:42 +02:00
restructure for backend/frontend separation
This commit is contained in:
8
backend/app/data_adapters.py
Normal file
8
backend/app/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