memory (sqla): fix complete setting when index is None in getItems

This commit is contained in:
Goffi 2022-01-25 17:09:54 +01:00
commit 5c6bac6ade

View file

@ -1373,7 +1373,7 @@ class Storage:
"last": last,
}.items() if v is not None
}
metadata["complete"] = index + len(result) == rows_count
metadata["complete"] = (index or 0) + len(result) == rows_count
return items, metadata