APi & Client: 'moving duration' instead of 'total duration' for record
This commit is contained in:
@ -204,7 +204,7 @@ class Activity(db.Model):
|
||||
record_types_columns = {
|
||||
'AS': 'ave_speed', # 'Average speed'
|
||||
'FD': 'distance', # 'Farthest Distance'
|
||||
'LD': 'duration', # 'Longest Duration'
|
||||
'LD': 'moving', # 'Longest Duration'
|
||||
'MS': 'max_speed', # 'Max speed'
|
||||
}
|
||||
records = {}
|
||||
|
@ -90,6 +90,7 @@ def activity_cycling_user_1():
|
||||
)
|
||||
activity.max_speed = 10
|
||||
activity.ave_speed = 10
|
||||
activity.moving = activity.duration
|
||||
db.session.add(activity)
|
||||
db.session.commit()
|
||||
return activity
|
||||
|
Reference in New Issue
Block a user