using async job to calculate predicted age records and store in db
This commit is contained in:
@@ -214,7 +214,34 @@ def update_records(url=c2url):
|
||||
except:
|
||||
print record
|
||||
|
||||
|
||||
|
||||
class CalcAgePerformance(models.Model):
|
||||
weightcategories = (
|
||||
('hwt','heavy-weight'),
|
||||
('lwt','light-weight'),
|
||||
)
|
||||
|
||||
sexcategories = (
|
||||
('male','male'),
|
||||
('female','female'),
|
||||
)
|
||||
|
||||
weightcategory = models.CharField(default="hwt",
|
||||
max_length=30,
|
||||
choices=weightcategories)
|
||||
|
||||
sex = models.CharField(default="female",
|
||||
max_length=30,
|
||||
choices=sexcategories)
|
||||
|
||||
age = models.IntegerField(default=19,verbose_name="Age")
|
||||
|
||||
duration = models.FloatField(default=1,blank=True)
|
||||
power = models.IntegerField(default=200)
|
||||
|
||||
class Meta:
|
||||
db_table = 'calcagegrouprecords'
|
||||
|
||||
class C2WorldClassAgePerformance(models.Model):
|
||||
weightcategories = (
|
||||
('hwt','heavy-weight'),
|
||||
|
||||
Reference in New Issue
Block a user