From 4417dcf75a4476302a969235c9c8201d145131fb Mon Sep 17 00:00:00 2001 From: Tezza Date: Sat, 7 Mar 2015 15:06:13 +0100 Subject: [PATCH] limiting the openingtimes on the last 2 weeks, not this one including the last 2 --- src/app/level2/Level2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/level2/Level2.php b/src/app/level2/Level2.php index ec78ae1..61841b4 100644 --- a/src/app/level2/Level2.php +++ b/src/app/level2/Level2.php @@ -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 ) = ?';