Setup counter for days

This commit is contained in:
Kilian committed 2024-07-12 12:26:34 +02:00
1 parent 49a65d4d1a
commit c5842e58f2
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -150,7 +150,7 @@ class Counter
DELETE FROM
CounterIP
WHERE
TIMESTAMPDIFF(MINUTE, timestamp, NOW()) > 1";
TIMESTAMPDIFF(DAY, timestamp, NOW()) > 1";
$stmt = $this->db->prepare($query);
$stmt->execute();
@@ -168,7 +168,7 @@ class Counter
AND
ip = :IP
AND
TIMESTAMPDIFF(MINUTE, timestamp, NOW()) <= 1";
TIMESTAMPDIFF(DAY, timestamp, NOW()) <= 1";
$stmt = $this->db->prepare($query);
$stmt->bindValue(":SID", $this->siteID);