Making the website work without db.
This commit is contained in:
parent
dbcb69cc5c
commit
c93313e941
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user