Skip to content

Commit 9171ee3

Browse files
committed
Issue #223: fix activities check for already downloaded
1 parent 6cfab1b commit 9171ee3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

garmindb/download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def get_activities(self, directory, count, overwite=False):
247247
activity_name_str = conversions.printable(activity['activityName'])
248248
root_logger.info("get_activities: %s (%s)", activity_name_str, activity_id_str)
249249
json_filename = f'{directory}/activity_{activity_id_str}'
250-
if not os.path.isfile(json_filename) or overwite:
250+
if not os.path.isfile(json_filename + '.json') or overwite:
251251
root_logger.info("get_activities: %s <- %r", json_filename, activity)
252252
self.__save_activity_details(directory, activity_id_str, overwite)
253253
self.save_json_to_file(json_filename, activity)

0 commit comments

Comments
 (0)