Open ItzFender opened 4 months ago
I ended up finding issue #163 which pointed me in the right direction.
I had 16 rows in my activities table that were completely blank.
View:
select start_time from activities where start_time IS NULL;
Delete:
DELETE from activities WHERE start_time IS NULL;
I don't have a lot of experience with python so I may be way off base, but could you filter out null or empty datetimes in the get_years()
method/function?
It should:
@classmethod def get_years(cls, db): """Return a list of the unique years present in the time column.""" with db.managed_session() as session: return cls._rows_to_ints_not_none(session.query(extract('year', cls.time_col)).distinct().all())
_rows_to_ints_not_none should do that. It needs some debugging to see why it isn't working as intended.
GarminDB version: 3.6.0 Python version: 3.12.4
Command:
garmindb_cli.py --all --download --import --analyze --latest
<- Downloads data Removed for brevity ->
Error: