Skip to content

Commit

Permalink
Merge pull request #348 from PyPlanet/bugfix/346
Browse files Browse the repository at this point in the history
Changed live rankings view to display right offset (like Locals/Dedi).
  • Loading branch information
tomvlk committed Jun 3, 2017
2 parents e671a67 + 95d5931 commit 04b8e5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyplanet/apps/contrib/live_rankings/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def get_widget_records(self, player=None):
else:
if player_index <= self.top_entries:
# Player record is in top X, get following records (top entries + 1 onwards)
records += self.app.current_rankings[(self.top_entries + 1):(self.record_amount + 1)]
records += self.app.current_rankings[self.top_entries:self.record_amount]
custom_start_index = (self.top_entries + 1)
else:
# Player record is not in top X, get records around player record
Expand Down

0 comments on commit 04b8e5a

Please sign in to comment.