improve public dashboard

This commit is contained in:
msquare 2017-12-13 11:55:59 +01:00
parent 582b1a739a
commit af8454598c
1 changed files with 2 additions and 6 deletions

View File

@ -54,9 +54,7 @@ function stats_angels_needed_three_hours()
- (SELECT COUNT(*) FROM `ShiftEntry` WHERE `ShiftEntry`.`SID`=`Shifts`.`SID` AND `freeloaded`=0)
) as `count`
FROM `Shifts`
WHERE ((`end` > ? AND `end` < ?) OR (`start` > ? AND `start` < ?))", [
$now,
$in3hours,
WHERE `end` > ? AND `start` < ?", [
$now,
$in3hours
]);
@ -79,9 +77,7 @@ function stats_angels_needed_for_nightshifts()
- (SELECT COUNT(*) FROM `ShiftEntry` WHERE `ShiftEntry`.`SID`=`Shifts`.`SID` AND `freeloaded`=0)
) as `count`
FROM `Shifts`
WHERE ((`end` > ? AND `end` < ?) OR (`start` > ? AND `start` < ?))", [
$night_start,
$night_end,
WHERE `end` > ? AND `start` < ?", [
$night_start,
$night_end
]);