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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative date queries (continuation of #2418) #2597

Closed
wants to merge 19 commits into from

Conversation

sampsyo
Copy link
Member

@sampsyo sampsyo commented Jun 15, 2017

This adds relative dates to the query syntax for date-type fields. It's @euri10's work; I'm just opening the pull request to succeed #2418. 馃懟

added some doc
fixed an error with the weeks that didn't use the sign correctly
added more tests, this is where py.test fixtures would shine
corrected rst
fixed flake8 in test
corrected docs with correct example
added relative date usage to it
The previous version wasn't user-friendly enough and too technical.
A relative date doesn't need to be prefixed by @ anymore.
The relative date pattern now displays named groups.
Digits have been change to [0-9] to avoid other digit characters.
Removed the @ character in tests.
Updated subsequent documentation.
Solved conflicts with upstream of new parse classmethod of DateQuery

# Conflicts:
#	beets/dbcore/query.py
@mention-bot
Copy link

@sampsyo, thanks for your PR! By analyzing the history of the files in this pull request, we identified @discopatrick, @silb and @brunal to be potential reviewers.

@sampsyo sampsyo mentioned this pull request Jun 15, 2017
sampsyo added a commit that referenced this pull request Jun 15, 2017
To better match #2597 for a cleaner diff.
@sampsyo sampsyo closed this Jun 15, 2017
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.

None yet

3 participants