mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-28 12:54:15 +02:00
WIP: set m21 true for empty lists...
...quick hack to test whether that handles datasets with some empty json arrays better
This commit is contained in:
parent
17da3bf343
commit
2840c697aa
1 changed files with 1 additions and 0 deletions
|
|
@ -1172,6 +1172,7 @@ class Table(Queryable):
|
||||||
self.update(row_pk, {fk_column: new_pk})
|
self.update(row_pk, {fk_column: new_pk})
|
||||||
elif isinstance(expanded, list):
|
elif isinstance(expanded, list):
|
||||||
if not len(expanded):
|
if not len(expanded):
|
||||||
|
m21 = True
|
||||||
continue
|
continue
|
||||||
elif isinstance(expanded[0], dict):
|
elif isinstance(expanded[0], dict):
|
||||||
m2m = True
|
m2m = True
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue