alert boat type
This commit is contained in:
@@ -30,7 +30,8 @@ def create_alert(manager, rower, measured,period=7, emailalert=True,
|
||||
reststrokes=reststrokes,
|
||||
period=period,
|
||||
emailalert=emailalert,
|
||||
workouttype=workouttype
|
||||
workouttype=workouttype,
|
||||
boattype=boattype,
|
||||
)
|
||||
|
||||
alert.save()
|
||||
@@ -95,7 +96,8 @@ def alert_get_stats(alert,nperiod=0):
|
||||
columns += condition.metric
|
||||
|
||||
workouts = Workout.objects.filter(date__gte=startdate,date__lte=enddate,user=alert.rower,
|
||||
workouttype=alert.workouttype,duplicate=False)
|
||||
workouttype=alert.workouttype,duplicate=False,
|
||||
boattype=alert.boattype)
|
||||
ids = [w.id for w in workouts]
|
||||
|
||||
df = getsmallrowdata_db(columns,ids=ids,doclean=True,workstrokesonly=workstrokesonly)
|
||||
|
||||
Reference in New Issue
Block a user