Skip to content

Commit

Permalink
bugfix for sorting lap times
Browse files Browse the repository at this point in the history
  • Loading branch information
bletham committed May 18, 2016
1 parent 919fb7c commit c18d90d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fstimer/timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ def get_sorted_results(self, rank_indx, cols, col_fns):
# Each value of laptimesdic is a list, sorted in order from
# fastest time (1st lap) to longest time (last lap).
laptimesdic = defaultdict(list)
for (tag, time) in sorted(timeslist, key=lambda x:x[1]):
for (tag, time) in sorted(timeslist, key=lambda x: time_parse(x[1])):
laptimesdic[tag].append(time)
# compute the lap times.
lap_times = {}
Expand Down

0 comments on commit c18d90d

Please sign in to comment.