ne pas importer de breakday les weekend (fixes #7)

This commit is contained in:
afornerot 2022-05-16 14:53:47 +02:00
parent 3759996f19
commit 4ec5dceb14
1 changed files with 122 additions and 120 deletions

View File

@ -97,6 +97,7 @@ class BreakdayCommand extends Command
if($response&&$response->code=="200") {
while($start<=$end) {
$havebreakday=false;
if($start->format("w")!=0&&$start->format("w")!=6) {
foreach($response->body->events as $event) {
if($event->eventallday) {
$manip=clone $start;
@ -255,6 +256,7 @@ class BreakdayCommand extends Command
}
}
}
}
// Si la journée n'a pas de congès on supprime ceux qui peuvent existé non validé
if(!$havebreakday) {