Skip to content

Commit

Permalink
Issue #223: fix activities check for already downloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
tcgoetz committed Feb 17, 2024
1 parent 6cfab1b commit 9171ee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion garmindb/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def get_activities(self, directory, count, overwite=False):
activity_name_str = conversions.printable(activity['activityName'])
root_logger.info("get_activities: %s (%s)", activity_name_str, activity_id_str)
json_filename = f'{directory}/activity_{activity_id_str}'
if not os.path.isfile(json_filename) or overwite:
if not os.path.isfile(json_filename + '.json') or overwite:
root_logger.info("get_activities: %s <- %r", json_filename, activity)
self.__save_activity_details(directory, activity_id_str, overwite)
self.save_json_to_file(json_filename, activity)
Expand Down

0 comments on commit 9171ee3

Please sign in to comment.