limiting the openingtimes on the last 2 weeks, not this one including the last 2

master
Tezza 2015-03-07 15:06:13 +01:00
parent 8381abd6dd
commit 4417dcf75a
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@
$chartDataQuery = 'SELECT ROUND( AVG( people ) )
FROM state
WHERE datetime >= curdate() - INTERVAL 2 WEEK
WHERE datetime >= curdate() - INTERVAL 312 Hour
AND WEEKDAY( datetime ) = ?
AND HOUR ( datetime ) = ?';