1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-23 01:27:14 +02:00

missing parenthesis

This commit is contained in:
gras 2024-05-11 16:41:37 +02:00
parent 63fe63cac4
commit 8019d0a8c1

View File

@ -826,7 +826,7 @@ export class SearchManager {
q.where( q.where(
`(media.metadata.creationDate + (media.metadata.creationDateOffset * 60000)) < :to${queryId}`, `(media.metadata.creationDate + (media.metadata.creationDateOffset * 60000)) < :to${queryId}`,
textParam textParam
).andWhere(`media.metadata.creationDate + (media.metadata.creationDateOffset * 60000)) >= :from${queryId}`, ).andWhere(`(media.metadata.creationDate + (media.metadata.creationDateOffset * 60000)) >= :from${queryId}`,
textParam); textParam);
} else { } else {
q.where( q.where(
@ -854,8 +854,6 @@ export class SearchManager {
if (Config.Database.type === DatabaseType.sqlite) { if (Config.Database.type === DatabaseType.sqlite) {
//(media.metadata.creationDate + (media.metadata.creationDateOffset * 60000))
if (tq.daysLength == 0) { if (tq.daysLength == 0) {
if (Config.Gallery.ignoreTimestampOffset === true) { if (Config.Gallery.ignoreTimestampOffset === true) {
q.where( q.where(