File tree Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -159,4 +159,21 @@ except Exception: # pylint: disable=broad-except
159
159
print (" Unknown error occured during Garmin Connect Client get body composition" )
160
160
quit ()
161
161
162
+
163
+ """
164
+ Get stats and body composition data
165
+ """
166
+ try :
167
+ print (client.get_stats_and_body(today.isoformat()))
168
+ except (
169
+ GarminConnectConnectionError,
170
+ GarminConnectAuthenticationError,
171
+ GarminConnectTooManyRequestsError,
172
+ ) as err:
173
+ print (" Error occured during Garmin Connect Client get stats and body composition: %s " % err)
174
+ quit ()
175
+ except Exception : # pylint: disable=broad-except
176
+ print (" Unknown error occured during Garmin Connect Client get stats and body composition" )
177
+ quit ()
178
+
162
179
```
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ def get_stats_and_body(self, cdate):
143
143
"""
144
144
Return activity data and body composition
145
145
"""
146
- return self .get_stats (cdate ) + self .get_body_composition (cdate )
146
+ return ({ ** self .get_stats (cdate ), ** self .get_body_composition (cdate )} )
147
147
148
148
def get_stats (self , cdate ): # cDate = 'YYY-mm-dd'
149
149
"""
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
"""Python 3 API wrapper for Garmin Connect to get your statistics."""
3
3
4
- __version__ = "0.1.9 "
4
+ __version__ = "0.1.10 "
You can’t perform that action at this time.
0 commit comments