diff --git a/misc/python/statistics/longest_success_streak.py b/misc/python/statistics/longest_success_streak.py index b2f0ecc..d659839 100644 --- a/misc/python/statistics/longest_success_streak.py +++ b/misc/python/statistics/longest_success_streak.py @@ -39,13 +39,13 @@ def __init__(self, wca_id, name, country): Results r inner join Competitions c on r.competitionId = c.id -inner join Events e on - r.eventId = e.id +inner join RoundTypes rt on + r.roundTypeId = rt.id where eventId = %(event_id)s order by start_date, - e.`rank`""" + rt.`rank`""" def longest_streaks():