Commit 4430ad94 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Fix issue related to database type list:string.

parent 69a8c61b
...@@ -58,7 +58,7 @@ if __name__ == "__main__": ...@@ -58,7 +58,7 @@ if __name__ == "__main__":
for row in db(db[args.table]).select(): for row in db(db[args.table]).select():
di = {} di = {}
for el in headers: for el in headers:
if db[args.table][el].type == 'json': if db[args.table][el].type in ('json', 'list:string'):
di[el] = json.dumps(row[el]) di[el] = json.dumps(row[el])
else: else:
di[el] = row[el] di[el] = row[el]
......
...@@ -47,7 +47,7 @@ if __name__ == "__main__": ...@@ -47,7 +47,7 @@ if __name__ == "__main__":
# json fields # json fields
json_fields = [] json_fields = []
for field in db[args.table]: for field in db[args.table]:
if field.type == 'json': if field.type in ('json', 'list:string'):
json_fields.append(field.name) json_fields.append(field.name)
# load table content loading properly json fields # load table content loading properly json fields
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment