Changeset 26220ba in OpenWorkouts-current for ow/models/workout.py


Ignore:
Timestamp:
Jan 25, 2019, 12:48:51 AM (5 years ago)
Author:
Borja Lopez <borja@…>
Branches:
current, feature/docs, master
Children:
d0fc76b, ed7e9d7
Parents:
c6219ed (diff), 5bdfbfb (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge patches from darcs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ow/models/workout.py

    rc6219ed r26220ba  
    1313    create_blob,
    1414    mps_to_kmph,
    15     save_map_screenshot
     15    save_map_screenshot,
     16    timedelta_to_hms
    1617)
    1718
     
    110111
    111112    def split_duration(self):
    112         hours, remainder = divmod(int(self.duration.total_seconds()), 3600)
    113         minutes, seconds = divmod(remainder, 60)
    114         return hours, minutes, seconds
     113        return timedelta_to_hms(self.duration)
    115114
    116115    @property
Note: See TracChangeset for help on using the changeset viewer.