~cypheon/trakka

e89151ede80cca407b573bbd121bbfc52ec16f1f — Johann Rudloff 3 years ago f4b6ad3
Don't try to parse gzipped FIT files also as GPX
1 files changed, 1 insertions(+), 1 deletions(-)

M activities/services.py
M activities/services.py => activities/services.py +1 -1
@@ 98,7 98,7 @@ def process_activity(act: Activity):
        if unc[8:12] == b'.FIT':
            logger.debug('this is a gzipped FIT file')
            track = from_fit_bytes(gz)
        if b'<gpx' in unc:
        elif b'<gpx' in unc:
            logger.debug('this is a gzipped GPX file')
            track = from_gpx_bytes(gz)
        else: