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 activity typeId filtering #72

Closed
wants to merge 4 commits into from

Conversation

joetimmerman
Copy link
Contributor

Adds the ability to filter based on typeIds as requested in #71. The new --type_filter argument allows you to pass a list of typeIds and only pull activities matching those Ids.

For example:
$ python gcexport.py -tf 3
Results in:
Filtering out due to typeID, 1 not in [3] : Garmin Connect activity (1/1) [8791243351

Copy link
Contributor

@bxsx bxsx left a comment

Choose a reason for hiding this comment

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

Nice PR. Maybe I would consider adding tests?
I also leave some code suggestions.

gcexport.py Outdated Show resolved Hide resolved
gcexport.py Outdated Show resolved Hide resolved
@joetimmerman
Copy link
Contributor Author

@bxsx Appreciate the feedback, will look into adding a test when I have some time.

@joetimmerman
Copy link
Contributor Author

@pe-st I think this should be good to go now that I've added in @bxsx 's suggestion to use f-strings matching #78

pe-st added a commit that referenced this pull request Jul 27, 2022
@pe-st
Copy link
Owner

pe-st commented Mar 3, 2024

@joetimmerman I had to slightly adapt your code while rebasing, it's now part of the next version, see #104

@joetimmerman
Copy link
Contributor Author

Cheers, thanks for keeping this repo going.

@pe-st
Copy link
Owner

pe-st commented Mar 10, 2024

The code is integrated into Release 4.3.0 (commits 89dd36d / b6938d8 / df58afe)

@pe-st pe-st closed this Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants