removes temporary records in powertimefitnessmetric
This commit is contained in:
@@ -631,7 +631,7 @@ def handle_updatefitnessmetric(user_id,mode,workoutids,debug=False,
|
||||
'date': timezone.now().strftime('%Y-%m-%d'),
|
||||
}
|
||||
|
||||
result = fitnessmetric_to_sql(mdict,debug=debug)
|
||||
result = fitnessmetric_to_sql(mdict,debug=debug,doclean=False)
|
||||
|
||||
columns = ['power','workoutid','time']
|
||||
df = getsmallrowdata_db(columns,ids=workoutids,debug=debug)
|
||||
@@ -702,7 +702,7 @@ def handle_updatefitnessmetric(user_id,mode,workoutids,debug=False,
|
||||
'date': timezone.now().strftime('%Y-%m-%d'),
|
||||
}
|
||||
|
||||
result = fitnessmetric_to_sql(mdict,debug=debug)
|
||||
result = fitnessmetric_to_sql(mdict,debug=debug,doclean=True)
|
||||
|
||||
return result
|
||||
|
||||
|
||||
Reference in New Issue
Block a user