small bug fixes
This commit is contained in:
@@ -329,7 +329,7 @@ def get_indoorraces(workout):
|
||||
if workout.duration is None:
|
||||
workout.duration = timedelta(0)
|
||||
|
||||
if workout.duration.second == 0 and workout.duration.microsecond == 0:
|
||||
if workout.duration.seconds == 0 and workout.duration.microseconds == 0:
|
||||
duration = 60*workout.duration.hour+workout.duration.minute
|
||||
|
||||
races2 = VirtualRace.objects.filter(
|
||||
|
||||
Reference in New Issue
Block a user