# HG changeset patch # User Goffi # Date 1643126994 -3600 # Node ID 40a6374fcd44f80b5309ce66cad2268cae40052a # Parent cf930bb282ac626152cc57220d1f511da772e8e8 memory (sqla): fix `complete` setting when `index` is `None` in `getItems` diff -r cf930bb282ac -r 40a6374fcd44 sat/memory/sqla.py --- a/sat/memory/sqla.py Tue Jan 25 17:09:11 2022 +0100 +++ b/sat/memory/sqla.py Tue Jan 25 17:09:54 2022 +0100 @@ -1373,7 +1373,7 @@ "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