mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-23 20:15:41 -04:00
Fix problems with date based queries
This commit is contained in:
parent
185f26d240
commit
b8c423321a
@ -29,8 +29,6 @@ int main(int argc, char *argv[]) {
|
|||||||
int err;
|
int err;
|
||||||
char *perr;
|
char *perr;
|
||||||
|
|
||||||
err_setdebugmask("parser");
|
|
||||||
|
|
||||||
while((option = getopt(argc, argv, "d:t:c:")) != -1) {
|
while((option = getopt(argc, argv, "d:t:c:")) != -1) {
|
||||||
switch(option) {
|
switch(option) {
|
||||||
case 'c':
|
case 'c':
|
||||||
@ -48,6 +46,8 @@ int main(int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
err_setdebugmask("parse");
|
||||||
|
|
||||||
if(conf_read(configfile) != CONF_E_SUCCESS) {
|
if(conf_read(configfile) != CONF_E_SUCCESS) {
|
||||||
fprintf(stderr,"could not read config file: %s\n",configfile);
|
fprintf(stderr,"could not read config file: %s\n",configfile);
|
||||||
exit(1);
|
exit(1);
|
||||||
|
@ -1137,7 +1137,7 @@ SP_NODE *sp_parse_date_criterion(PARSETREE tree) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(result) {
|
if(result) {
|
||||||
sp_scan(tree,SP_HINT_DATE);
|
sp_scan(tree,SP_HINT_NONE);
|
||||||
/* should be sitting on a date */
|
/* should be sitting on a date */
|
||||||
if((pnew->right.tvalue = sp_parse_date(tree))) {
|
if((pnew->right.tvalue = sp_parse_date(tree))) {
|
||||||
result=1;
|
result=1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user