From 2170498c5e6e0676263a093d0fabc38cddefb451 Mon Sep 17 00:00:00 2001 From: sergiotarxz Date: Tue, 2 May 2023 18:53:47 +0200 Subject: [PATCH] Removing unique ips. --- lib/BurguillosInfo/Tracking.pm | 3 --- templates/metrics/stats.html.ep | 1 - 2 files changed, 4 deletions(-) diff --git a/lib/BurguillosInfo/Tracking.pm b/lib/BurguillosInfo/Tracking.pm index 1a8c9d9..fa1dc4b 100644 --- a/lib/BurguillosInfo/Tracking.pm +++ b/lib/BurguillosInfo/Tracking.pm @@ -51,9 +51,6 @@ EOF my $dbh = BurguillosInfo::DB->connect($app); my $data = $dbh->selectrow_hashref(<<"EOF", undef); SELECT - ( - $SELECT_GLOBAL - ) as unique_ips, ( $SELECT_GLOBAL where date > NOW() - interval '1 day' diff --git a/templates/metrics/stats.html.ep b/templates/metrics/stats.html.ep index a4291c0..38ca8d2 100644 --- a/templates/metrics/stats.html.ep +++ b/templates/metrics/stats.html.ep @@ -2,7 +2,6 @@

Stats

-

Unique visitors <%=$tracking_data->{unique_ips}%>

Unique visitors last 24 hours <%=$tracking_data->{unique_ips_last_24_hours}%>

Unique visitors last week <%=$tracking_data->{unique_ips_last_week}%>

Unique visitors last month <%=$tracking_data->{unique_ips_last_month}%>