Refactor for heroku

This commit is contained in:
2022-07-15 02:07:40 +02:00
parent 95838885e7
commit 895dd14073
20 changed files with 11 additions and 10 deletions

8
backend/data_adapters.py Normal file
View 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