From e0474057dd68ff10f01e895acac24c3ef045e269 Mon Sep 17 00:00:00 2001 From: Stanislav Khrapov Date: Fri, 29 Jun 2018 21:16:38 +0200 Subject: [PATCH] Fix error in documentation about `export_formats` argument type. --- garminexport/incremental_backup.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/garminexport/incremental_backup.py b/garminexport/incremental_backup.py index 8119524..7c6b6b3 100644 --- a/garminexport/incremental_backup.py +++ b/garminexport/incremental_backup.py @@ -3,6 +3,7 @@ import getpass import logging import os from datetime import timedelta +from typing import List import garminexport.backup from garminexport.backup import supported_export_formats @@ -15,7 +16,7 @@ log = logging.getLogger(__name__) def incremental_backup(username: str, password: str = None, backup_dir: str = os.path.join(".", "activities"), - export_formats: str = 'ALL', + export_formats: List[str] = None, ignore_errors: bool = False, max_retries: int = 7): """Performs (incremental) backups of activities for a given Garmin Connect account. @@ -23,7 +24,8 @@ def incremental_backup(username: str, :param username: Garmin Connect user name :param password: Garmin Connect user password. Default: None. If not provided, would be asked interactively. :param backup_dir: Destination directory for downloaded activities. Default: ./activities/". - :param export_formats: Desired output formats (json_summary, json_details, gpx, tcx, fit). Default: ALL. + :param export_formats: List of desired output formats (json_summary, json_details, gpx, tcx, fit). + Default: `None` which means all supported formats will be backed up. :param ignore_errors: Ignore errors and keep going. Default: False. :param max_retries: The maximum number of retries to make on failed attempts to fetch an activity. Exponential backoff will be used, meaning that the delay between successive attempts