Skip to content
This repository has been archived by the owner on Feb 8, 2019. It is now read-only.

Commit

Permalink
use paged data
Browse files Browse the repository at this point in the history
  • Loading branch information
deathowl committed Nov 9, 2015
1 parent e898f4d commit a27e3c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openduty/opsweekly.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def list(self, request, *args, **kwargs):
page = self.paginate_queryset(events)
if page is not None:
response = []
for event in events:
for event in page:
r_row = {"occurred_at": event.occurred_at, "output": event.incident_key.details,
"incindent_key": event.incident_key.incident_key}
response.append(r_row)
Expand Down

0 comments on commit a27e3c2

Please sign in to comment.