This was not the chain I was looking for

This commit is contained in:
Mathieu Comandon 2017-06-13 09:17:39 -07:00
parent 7986da2d80
commit 476407c880

View file

@ -347,7 +347,7 @@ class LutrisWindow(Gtk.ApplicationWindow):
if result:
added_ids, updated_ids = result
page_size = 999
added_games = chain([
added_games = chain.from_iterable([
pga.get_games_where(id__in=list(added_ids)[p * page_size:p * page_size + page_size])
for p in range(math.ceil(len(added_ids) / page_size))
])