Skip to content

Commit e074f69

Browse files
authored
Fix maxpoly arg to get_activity_details() to allow 0 value
get_activity_details(..., maxploy=0) is the best way to get the details of an activity when not interested in polylines. The 0 value is allowed.
1 parent e921425 commit e074f69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

garminconnect/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2127,7 +2127,7 @@ def get_activity_details(
21272127

21282128
activity_id = str(activity_id)
21292129
maxchart = _validate_positive_integer(maxchart, "maxchart")
2130-
maxpoly = _validate_positive_integer(maxpoly, "maxpoly")
2130+
maxpoly = _validate_non_negative_integer(maxpoly, "maxpoly")
21312131
params = {"maxChartSize": str(maxchart), "maxPolylineSize": str(maxpoly)}
21322132
url = f"{self.garmin_connect_activity}/{activity_id}/details"
21332133
logger.debug("Requesting details for activity id %s", activity_id)

0 commit comments

Comments
 (0)