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


Ignore:
Timestamp:
Jan 18, 2019, 2:04:50 PM (5 years ago)
Author:
borja <borja@…>
Branches:
current, feature/docs, master
Children:
d33326a
Parents:
eaef731
Message:

Use the .committed() and ._uncommitted() methods to get the blob file path

for tracking_file and fit_file blobs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ow/models/workout.py

    reaef731 rb030195  
    213213        path = None
    214214        if self.tracking_file:
    215             path = self.tracking_file._p_blob_uncommitted
     215            path = self.tracking_file._uncommitted()
    216216            if path is None:
    217                 path = self.tracking_file._p_blob_committed
     217                path = self.tracking_file.committed()
    218218        return path
    219219
     
    230230        path = None
    231231        if self.fit_file:
    232             path = self.fit_file._p_blob_uncommitted
     232            path = self.fit_file._uncommitted()
    233233            if path is None:
    234                 path = self.fit_file._p_blob_committed
     234                path = self.fit_file.committed()
    235235        return path
    236236
Note: See TracChangeset for help on using the changeset viewer.