Private
Public Access
1
0

calculates age group 2k

This commit is contained in:
Sander Roosendaal
2017-12-12 21:59:28 +01:00
parent 228ea8f980
commit 86a72545e0
5 changed files with 44 additions and 3 deletions

View File

@@ -183,7 +183,7 @@ def make_records(readfile):
save_agegroup(female_df,'hwt','female')
save_agegroup(male_df,'hwt','male')
save_agegroup(female_lw_df,'lwt','female')
save_agegroup(female_lw_df,'lwt','male')
save_agegroup(male_lw_df,'lwt','male')
class C2WorldClassAgePerformance(models.Model):
@@ -218,7 +218,7 @@ class C2WorldClassAgePerformance(models.Model):
unique_together = ('agemin','agemax','sex','weightcategory','distance')
def __unicode__(self):
return self.name+':'+str(self.agemin)+'-'+str(self.agemax)+' ('+str(self.season)+')'
return self.sex+' '+self.weightcategory+' '+self.name+':'+str(self.agemin)+'-'+str(self.agemax)+' ('+str(self.season)+')'
# For future Team functionality
class Team(models.Model):