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 filtering by human-readable activity type #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RReverser
Copy link

Something that bothered me every time I downloaded a new batch of activities with this script is that it requires numeric type IDs that can be pretty hard to discover (basically same as #106) or remember.

This PR adds ability to filter out by human-readable activity type instead, so you can use -tf walking,hiking instead of -tf 3,9.

The documentation was switched to show just the human-readable filter as I think it will be preferable in vast majority of usecases, but the old ID-based filter is kept in code too for backward compatibility.

Something that bothered me every time I downloaded a new batch of activities with this script is that it requires numeric type IDs that can be pretty hard to discover (basically same as pe-st#106) or remember.

This PR adds ability to filter out by human-readable activity type instead, so you can use `-tf walking,hiking` instead of `-tf 3,9`.

The documentation was switched to show just the human-readable filter as I think it will be preferable in vast majority of usecases, but the old ID-based filter is kept in code too for backward compatibility.
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.

1 participant