Skip to content

Commit

Permalink
Fix long-suffering suffering leaderboards
Browse files Browse the repository at this point in the history
  • Loading branch information
obscurerichard committed Feb 5, 2024
1 parent 5388927 commit ae8e8e6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion freezing/web/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@

<li><a href="/explore/distance_by_lowtemp">Distance vs. Avg Low Temp</a></li>
<li><a href="/explore/indiv_elev_dist">Individual Dist/Elev/Speed</a></li>
<li class="disabled"><a class="disabled" {# href="/explore/team_cumul" #} data-toggle="tooltip" data-placement="top" title="This leaderboard is returning soon!">Team Cumulative</a></li>
<li><a href="/explore/team_cumul">Team Cumulative</a></li>
<li><a href="/explore/team_weekly">Team Weekly Points</a></li>
</ul>
</li>
Expand Down
8 changes: 4 additions & 4 deletions freezing/web/views/chartdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -1050,9 +1050,9 @@ def parameterized_suffering_query(
select A.display_name as athlete_name,
A.id as ath_id,
W.{0} as {1},
R.start_date as date,
R.location as loc,
R.moving_time as moving
any_value(R.start_date) as date,
any_value(R.location) as loc,
any_value(R.moving_time) as moving
from rides R
inner join ride_weather W on R.id=W.ride_id
inner join lbd_athletes A on A.id=R.athlete_id
Expand All @@ -1067,7 +1067,7 @@ def parameterized_suffering_query(
) as SQ
ON SQ.{1}2 = W.{0}
AND SQ.ath2_id = A.id
group by athlete_name
group by athlete_name, ath_id
order by {1} {3}, moving DESC;
""".format(
weath_field, weath_nick, func, desc, superlative_restriction
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

__copyright__ = "Copyright 2015 Hans Lellelid"

version = "1.3.1"
version = "1.3.2"

long_description = """
The freezing saddles cycling competition website/scoreboard.
Expand Down

0 comments on commit ae8e8e6

Please sign in to comment.