да поебать мне

This commit is contained in:
Arsen Mirzaev Tatyano-Muradovich 2023-12-21 23:34:27 +07:00
parent 5686a3aec2
commit 34ddf03807
12 changed files with 4 additions and 2 deletions

0
.gitignore vendored Normal file → Executable file
View File

0
LICENSE Normal file → Executable file
View File

0
README.md Normal file → Executable file
View File

0
composer.json Normal file → Executable file
View File

0
composer.lock generated Normal file → Executable file
View File

View File

View File

View File

@ -183,7 +183,9 @@ function requests(int $amount = 5, int $page = 1): Cursor
$arangodb->session, $arangodb->session,
[ [
'query' => sprintf( 'query' => sprintf(
"FOR d IN works FILTER d.worker == null && d.confirmed != 'да' SORT d.created DESC LIMIT %d, %d RETURN d", "FOR d IN works FILTER d.date >= '%s' && d.date <= '%s' && d.worker == '' && d.confirmed != 'да' SORT d.created DESC LIMIT %d, %d RETURN d",
(new DateTime('now'))->setTime(7, 0)->format('d.m.Y'),
(new DateTime('tomorrow'))->setTime(7, 0)->format('d.m.Y'),
$offset, $offset,
$amount + $offset $amount + $offset
), ),
@ -339,7 +341,7 @@ try {
(new Text()) (new Text())
->setSender($botSender) ->setSender($botSender)
->setReceiver($id) ->setReceiver($id)
->setText("**#{$request->getKey()}**\n\n" . $request->date['converted'] . " (" . $request->start['converted'] . " - " . $request->end['converted'] . ")\n**Работа:** \"$request->work\"\n\n**Город:** $market->city\n**Адрес:** $market->address") ->setText("**#{$request->getKey()}**\n\n" . ($request->date['converted'] ?? $request->date) . " (" . ($request->start['converted'] ?? $request->start) . " - " . ($request->end['converted'] ?? $request->end) . ")\n**Работа:** \"$request->work\"\n\n**Город:** $market->city\n**Адрес:** $market->address")
); );
// Запись выбора заявки в клавиатуру // Запись выбора заявки в клавиатуру

View File