From 00b8991961369ad812ba13c31dcfac708c9ddd38 Mon Sep 17 00:00:00 2001 From: sergiotarxz Date: Tue, 2 May 2023 20:57:09 +0200 Subject: [PATCH] New query --- lib/BurguillosInfo/Tracking.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/BurguillosInfo/Tracking.pm b/lib/BurguillosInfo/Tracking.pm index 6367d81..d6f9f75 100644 --- a/lib/BurguillosInfo/Tracking.pm +++ b/lib/BurguillosInfo/Tracking.pm @@ -116,7 +116,8 @@ SELECT paths.path, $SELECT_GLOBAL where requests.path = paths.path and date > NOW() - interval '1 month' ) as unique_ips_last_month -FROM paths; +FROM paths +WHERE paths.last_seen > NOW() - INTERVAL '1 month'; EOF return $data; }