Skip to content
Snippets Groups Projects
Commit 35591f13 authored by Julian Rother's avatar Julian Rother
Browse files

Fixed that sqlite appends numbers on duplicate column names

parent 3c079b08
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ def query(operation, *params, delim="sep"): ...@@ -67,7 +67,7 @@ def query(operation, *params, delim="sep"):
res.append({}) res.append({})
ptr = res[-1] ptr = res[-1]
for col, desc in zip(row, cur.description): for col, desc in zip(row, cur.description):
name = desc[0].split('.')[-1] name = desc[0].split('.')[-1].split(':')[0]
if name == delim: if name == delim:
ptr = res[-1][col] = {} ptr = res[-1][col] = {}
continue continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment