mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-07-05 17:44:31 +02:00
Use bootstrap-table for fancy ajax tables.
This commit is contained in:
8
app/data_adapters.py
Normal file
8
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