Skip to content

Commit

Permalink
Fixes /issues/831 (#834)
Browse files Browse the repository at this point in the history
* Fixes /issues/831

* thraxis fix
  • Loading branch information
fernandog committed Jul 29, 2016
1 parent f378b66 commit 22b5e5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sickrage/show/History.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,11 @@ def get(self, limit=100, action=None):
# TODO: Convert to using operators to combine items
for row in sql_results:
row = History.Item(*row)
if not limit or len(detailed) < limit:
detailed.append(row)
if row.index in compact:
compact[row.index].actions.append(row.cur_action)
elif not limit or len(compact) < limit:
detailed.append(row)
compact[row.index] = row.compacted()

results = namedtuple('results', ['detailed', 'compact'])
Expand Down

0 comments on commit 22b5e5f

Please sign in to comment.