Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gar_wg_state and gar_bp_state variables to Sync.py #153

Merged
merged 3 commits into from
Dec 27, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions withings_sync/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,8 @@ def sync():
fit_data_weight is not None or fit_data_blood_pressure is not None
):
logging.debug("attempting to upload fit file...")
gar_wg_state = None
gar_bp_state = None
if fit_data_weight is not None:
gar_wg_state = sync_garmin(fit_data_weight)
if gar_wg_state:
Expand All @@ -470,6 +472,7 @@ def sync():
logging.info(
"Fit file with blood pressure information uploaded to Garmin Connect"
)
# Save this sync so we don't re-download the same data again (if no range has been specified)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no longer need for this comment here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed, thanks!

if gar_wg_state or gar_bp_state:
# Save this sync so we don't re-download the same data again (if no range has been specified)
if not ARGS.fromdate:
Expand Down