Making the website work without db.

This commit is contained in:
sergiotarxz 2023-07-28 22:38:22 +02:00
parent dbcb69cc5c
commit c93313e941

View File

@ -20,12 +20,17 @@ my $tracking;
my $iso8601 = DateTime::Format::ISO8601->new;
sub request {
shift;
eval {
my $c = shift;
my $app = $c->app;
if (!defined $tracking) {
$tracking = BurguillosInfo::Tracking->new($app);
}
$tracking->register_request($c);
};
if ($@) {
say STDERR $@;
}
}
sub stats {