diff --git a/fit_encoder.py b/fit_encoder.py index 524ec3a..c503d41 100644 --- a/fit_encoder.py +++ b/fit_encoder.py @@ -20,8 +20,8 @@ from struct import pack from typing import List -from definitions import MANUFACTURER, PRODUCT, SPORT, SEGMENT_LEADERBOARD_TYPE -from profile import Record, get_message, Crc +from .definitions import MANUFACTURER, PRODUCT, SPORT, SEGMENT_LEADERBOARD_TYPE +from .profile import Record, get_message, Crc @dataclass diff --git a/profile.py b/profile.py index 4eafb13..18dfd58 100644 --- a/profile.py +++ b/profile.py @@ -22,7 +22,7 @@ from struct import pack from typing import List -from definitions import FIT_BASE_TYPES +from .definitions import FIT_BASE_TYPES # According to the SDK date_time type is computed counting the seconds since this datetime: UTC 00:00 Dec 31 1989 date_time_seconds_since = datetime(1989, 12, 31, 0, 0, 0).timestamp()