python v2 - added feartures 1 and 2, fix gmt issue - daemon hsa errors part 2

This commit is contained in:
2025-08-08 14:07:06 -07:00
parent b718a908ce
commit 9418823915
5 changed files with 42 additions and 20 deletions

View File

@@ -12,6 +12,7 @@ class Activity(Base):
start_time = Column(String, nullable=False)
filename = Column(String, unique=True, nullable=True)
downloaded = Column(Boolean, default=False, nullable=False)
created_at = Column(String, nullable=False) # Add this line
last_sync = Column(String, nullable=True) # ISO timestamp of last sync
class DaemonConfig(Base):
@@ -68,6 +69,7 @@ def sync_database(garmin_client):
activity_id=activity_id,
start_time=start_time,
downloaded=False,
created_at=datetime.now().isoformat(), # Add this line
last_sync=datetime.now().isoformat()
)
session.add(new_activity)