From 2f05a70ee505456e11c6fa3fa84857a019ebc51e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Thu, 18 Dec 2014 21:57:44 +0100 Subject: [PATCH] 0 in place of nothing in total year overview --- iwla.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iwla.py b/iwla.py index 8cfd6ed..609108d 100755 --- a/iwla.py +++ b/iwla.py @@ -142,7 +142,7 @@ class IWLA(object): self.log_format_extracted = re.sub(r'\$(\w+)', '(?P<\g<1>>.+)', self.log_format_extracted) self.http_request_extracted = re.compile(r'(?P\S+) (?P\S+) (?P\S+)') self.log_re = re.compile(self.log_format_extracted) - self.uri_re = re.compile(r'(?P[^\?]+)(\?(?P.+))?') + self.uri_re = re.compile(r'(?P[^\?#]+)(\?(?P[^#]+))?(#.*)?') self.domain_name_re = re.compile(r'.*%s' % conf.domain_name) self.plugins = [(conf.PRE_HOOK_DIRECTORY , conf.pre_analysis_hooks), (conf.POST_HOOK_DIRECTORY , conf.post_analysis_hooks), @@ -456,6 +456,7 @@ class IWLA(object): total[0] = self._('Total') total[5] = bytesToStr(total[5]) total[6] = bytesToStr(total[6]) + total[7] = u'' months.appendRow(total) page.appendBlock(months)