~cypheon/trakka

e30fe514a2dd8f4e81d8cf3910e604f8faffa1a0 — Johann Rudloff 10 months ago 5804d63
Take climbed meters into account when estimating energy expenditure
1 files changed, 1 insertions(+), 1 deletions(-)

M activities/activity.py
M activities/activity.py => activities/activity.py +1 -1
@@ 301,7 301,7 @@ def analyse(track: Track, athlete_data: Mapping[str, float], raw: bool = False):
    weight = athlete_data.get('weight')
    if weight is not None:
        energy = round(estimate_energy(dist[-1][1],
                                 0, # TODO: real elevation
                                 climb,
                                 elapsed_seconds,
                                 weight))
    else: