Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2020-11-11 08:36:47 +01:00
parent 779b4ed61d
commit abefbbc799
3 changed files with 32 additions and 7 deletions

View File

@@ -3267,6 +3267,9 @@ class IndoorVirtualRaceResult(models.Model):
acceptsocialmedia = models.BooleanField(default=True,
verbose_name = 'I agree with sharing my name in challenge related social media posts (unchecking this does not prevent you from participation)')
startsecond = models.FloatField(default=0)
endsecond = models.FloatField(default=0)
def isduplicate(self,other):
if self.userid != other.userid:
return False
@@ -3335,7 +3338,8 @@ class CourseTestResult(models.Model):
duration = models.TimeField(default=datetime.time(1,0))
distance = models.IntegerField(default=0)
coursecompleted = models.BooleanField(default=False)
startsecond = models.FloatField(default=0)
endsecond = models.FloatField(default=0)
class IndoorVirtualRaceResultForm(ModelForm):