Changes in ow/views/user.py [55470f9:a3c3baa] in OpenWorkouts-current


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ow/views/user.py

    r55470f9 ra3c3baa  
    178178
    179179    for workout in workouts:
    180         totals['distance'] += (
    181             getattr(workout, 'distance', Decimal(0)) or Decimal(0))
    182         totals['time'] += (
    183             getattr(workout, 'duration', timedelta(0)) or timedelta(0))
    184         totals['elevation'] += (
    185             getattr(workout, 'uphill', Decimal(0)) or Decimal(0))
     180        totals['distance'] += getattr(workout, 'distance', Decimal(0))
     181        totals['time'] += getattr(workout, 'duration', timedelta(0))
     182        totals['elevation'] += getattr(workout, 'uphill', Decimal(0))
    186183
    187184    return {
Note: See TracChangeset for help on using the changeset viewer.