Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/garmy/localdb/progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ def task_failed(self, task: str, sync_date: date):
def info(self, message: str):
"""Log info message."""
self.logger.info(message)


def warning(self, message: str):
"""Log warning message."""
self.logger.warning(message)

def error(self, message: str):
"""Log error message."""
self.logger.error(message)
Expand Down
7 changes: 6 additions & 1 deletion src/garmy/localdb/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ def initialize(self, email: str, password: str):
from garmy import AuthClient, APIClient

auth_client = AuthClient()
auth_client.login(email, password)
auth_client.login(
email,
password,
prompt_mfa=lambda: input("MFA code: "),
)

self.api_client = APIClient(auth_client=auth_client)

self.activities_iterator = ActivitiesIterator(
Expand Down