заявки на любой день

This commit is contained in:
Arsen Mirzaev Tatyano-Muradovich 2023-12-22 12:08:00 +07:00
parent b925ebe64e
commit 827d514036

View File

@ -198,9 +198,10 @@ function requests(int $amount = 5, int $page = 1): Cursor
$arangodb->session, $arangodb->session,
[ [
'query' => sprintf( 'query' => sprintf(
"FOR d IN task FILTER d.date >= %s && d.date <= %s && d.worker == null && d.confirmed != true && d.published == true && d.completed != true SORT d.created DESC, d._key DESC LIMIT %d, %d RETURN d", "FOR d IN task FILTER d.date >= %s && d.worker == null && d.confirmed != true && d.published == true && d.completed != true SORT d.created DESC, d._key DESC LIMIT %d, %d RETURN d",
/* "FOR d IN task FILTER d.date >= %s && d.date <= %s && d.worker == null && d.confirmed != true && d.published == true && d.completed != true SORT d.created DESC, d._key DESC LIMIT %d, %d RETURN d", */
(new DateTime('now'))->setTime(7, 0)->format('U'), (new DateTime('now'))->setTime(7, 0)->format('U'),
(new DateTime('tomorrow'))->setTime(7, 0)->format('U'), /* (new DateTime('tomorrow'))->setTime(7, 0)->format('U'), */
$offset, $offset,
$amount + $offset $amount + $offset
), ),