Skip to content

Commit

Permalink
Live Rankings: fixed position of race rankings widget if Dedimania is…
Browse files Browse the repository at this point in the history
… disabled.
  • Loading branch information
TheMaximum committed Aug 30, 2023
1 parent a4e62d5 commit 1bba592
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyplanet/apps/contrib/live_rankings/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,9 @@ def get_widget_records(self, player=None):
return list_finishes

async def get_context_data(self):
self.widget_x = -124.5 if self.app.dedimania_enabled else -160
self.widget_y = 83.5 if self.app.dedimania_enabled else 12.5

self.record_amount = await self.app.setting_rankings_amount.get_value()
if self.record_amount < 15:
self.record_amount = 15
Expand Down

0 comments on commit 1bba592

Please sign in to comment.