New query

This commit is contained in:
sergiotarxz 2023-05-02 20:57:09 +02:00
parent 6ebfc8cbe5
commit 00b8991961

View File

@ -116,7 +116,8 @@ SELECT paths.path,
$SELECT_GLOBAL $SELECT_GLOBAL
where requests.path = paths.path and date > NOW() - interval '1 month' where requests.path = paths.path and date > NOW() - interval '1 month'
) as unique_ips_last_month ) as unique_ips_last_month
FROM paths; FROM paths
WHERE paths.last_seen > NOW() - INTERVAL '1 month';
EOF EOF
return $data; return $data;
} }