Commit graph

8066 commits

Author SHA1 Message Date
discopatrick
6a71504545 Allow multiple date formats for each precision
We want to allow datetime queries to be entered in multiple formats,
e.g. with a 'T' or a space separator between date and time. This
commit sets up that possibility, albeit with an additional dummy
format for the time being.
2017-04-26 23:53:51 +01:00
discopatrick
05f0072363 Update docstring 2017-04-26 23:46:17 +01:00
discopatrick
b8e1c5675e Fix tests 2017-04-25 02:25:50 +01:00
discopatrick
ba324df0d1 Add a date query precision of ‘minute’ 2017-04-25 01:38:31 +01:00
discopatrick
5f2c47ec18 Test further hour precision intervals 2017-04-25 01:38:31 +01:00
discopatrick
61b832990f Add a date query precision of ‘hour’ 2017-04-25 01:38:24 +01:00
Nathan Dwek
68089ac8e9 Merge pull request #2524 from beetbox/command-output-close-stdin
Close stdin when performing `command_output()`
2017-04-24 20:31:04 +02:00
Adrian Sampson
2c71092eaa Merge pull request #2526 from jwilk/errno
Don't hardcode errno constant
2017-04-23 23:14:34 -04:00
Jakub Wilk
95a868bb50 Don't hardcode errno constant
The value of ENOENT is architecture-dependent, so don't assume
it's always 2.
2017-04-23 23:28:32 +02:00
discopatrick
d24b373c87 Adjust indentation to pass flake8 tests 2017-04-22 18:23:33 +01:00
discopatrick
63cd799e8d Raise the correct error type
The incorrect error type was reintroduced in the previous merge commit.
2017-04-22 18:13:26 +01:00
discopatrick
bd48559b0a Merge branch 'master' into rename-error
# Conflicts:
#	beets/dbcore/query.py
2017-04-22 18:13:03 +01:00
discopatrick
58417526cb Rename InvalidQueryArgumentTypeError to InvalidQueryArgumentValueError
The way we use `InvalidQueryArgumentTypeError` is more akin to a `ValueError` than a `TypeError`. For example, we try to parse a string as an int, float, or date, but the parsing fails - there was nothing wrong with the type of the variable (string), but its contents were not parseable into the type we wanted - there was a problem with the value of the string.
2017-04-22 18:07:30 +01:00
nath@home
b38f34b2c0 command_output: insure py2/3 compat
This should make #2524 pass
2017-04-22 15:52:09 +02:00
nath@home
7a08e4a978 Changelog for 2524 2017-04-22 15:07:28 +02:00
nath@home
7a3c786215 command-output: Wire subproc stdin to /dev/null
This should fix 2488, where beet convert would prevent further
inputs.
2017-04-22 15:01:31 +02:00
Adrian Sampson
80f77aea4d Merge pull request #2522 from discopatrick/date-value-field-validation-method
Date value field validation method
2017-04-21 08:48:52 -04:00
discopatrick
4dbc4134b3 consolidates the declaration and incrementing of ordinal into one line 2017-04-21 12:55:44 +01:00
discopatrick
85adbd1383 gives variable the better name of ‘ordinal’ 2017-04-20 13:36:31 +01:00
discopatrick
713c00aea7 reverts order of precisions from broadest to narrowest 2017-04-20 13:20:22 +01:00
discopatrick
ab7cc8f1ab Merge branch 'master' into date-value-field-validation-method
# Conflicts:
#	beets/dbcore/query.py
2017-04-20 13:03:25 +01:00
Adrian Sampson
fae8fcc932 ftintitle: Clarify indexing
This can only be a two-element array, so just use the index 1. This matches
better with the comments, that say "right-hand side" instead of "the last
value in the list."
2017-04-19 19:08:15 -04:00
Adrian Sampson
9d42728f7f ftintitle: Clarify control flow
Assigning to this variable made it hard to tell what the function was actually
returning.
2017-04-19 19:07:29 -04:00
Adrian Sampson
78f19db511 Merge pull request #2521 from tweitzel/master
add --yes argument to play command
2017-04-19 18:59:50 -04:00
xarph
02aa6191c1 rename --force to --yes in play plugin
fix some pep8 goo
2017-04-19 10:51:44 -07:00
Adrian Sampson
18127ce6bf Merge branch 'master' of github.com:beetbox/beets 2017-04-19 11:37:36 -04:00
Adrian Sampson
29b57fb5a7 Changelog for #2517 2017-04-19 11:36:58 -04:00
Adrian Sampson
31c7330de4 Merge pull request #2517 from discopatrick/date-value-field-validation
Date value field validation
2017-04-19 11:36:18 -04:00
Adrian Sampson
21c59bfcdd Merge pull request #2508 from Mary011196/master
OperationalError from SQlite that indicates a permissions problem.
2017-04-19 11:25:37 -04:00
discopatrick
18c512893e more flake8 updates 2017-04-19 14:10:04 +01:00
SpirosChadoulos
60318f1e02 fixed line length 2017-04-19 13:07:04 +03:00
SpirosChadoulos
de57602e34 fixed certain errors 2017-04-19 12:54:03 +03:00
SpirosChadoulos
3e9076b451 deleted else 2017-04-19 12:47:31 +03:00
SpirosChadoulos
70183070b2 deleted else 2017-04-19 12:35:07 +03:00
SpirosChadoulos
53618258fa added 1 line before for loop 2017-04-19 11:31:08 +03:00
xarph
ffcaf33845 add -f argument to play command 2017-04-18 15:30:24 -07:00
Adrian Sampson
7eaaa99566 Changelog entry for #2508 2017-04-18 17:59:12 -04:00
Adrian Sampson
906bd97d46 Hint about database access errors 2017-04-18 17:57:13 -04:00
Adrian Sampson
19e09585d8 Re-raise other errors
And re-use the SQLite error string instead of a hand-written one for now.
2017-04-18 10:32:44 -04:00
Adrian Sampson
621427fa63 Reformat a docstring 2017-04-18 10:31:09 -04:00
Mary011196
e756f98845 Correcting the mistakes that Travis CI showed me 2017-04-16 17:24:48 +03:00
Adrian Sampson
512031a099 Revise changelog for #2509 2017-04-16 08:57:52 -04:00
Adrian Sampson
8a99eea146 Merge pull request #2509 from mattmurch/Issue549
Add default replace for - to _
2017-04-16 08:56:22 -04:00
SpirosChadoulos
a99b7e9e40 Provided default value for export. 2017-04-16 15:53:11 +03:00
Mary011196
0492741bf7 Error check with if statemetnt 2017-04-16 15:18:40 +03:00
Mary011196
f7a58447f0 Change the error name to DBAccessError 2017-04-16 15:15:45 +03:00
Adrian Sampson
346ecbc6d4 Slightly more verbose config overlay description 2017-04-15 15:43:26 -04:00
Adrian Sampson
8e58a61eb4 Remove one blank line 2017-04-15 15:34:09 -04:00
Adrian Sampson
560d003375 Merge pull request #2514 from MolarAmbiguity/master
Add info about overlaying configs, Resolves #2084
2017-04-15 15:34:00 -04:00
Adrian Sampson
a2eb6fae0b Merge pull request #2518 from jwilk/re.sub
Fix misuse of flags in re.sub() calls
2017-04-15 12:00:09 -04:00