@@ 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: