From 965ff113ded6c27b51e48e76cd2946b4aa3af98d Mon Sep 17 00:00:00 2001 From: Cyril Bay <cbay@excellency.fr> Date: Mon, 21 May 2012 13:28:36 +0000 Subject: [PATCH] Refs #703 Do not append the query string delimiter if there's no query string, thanks reetz. git-svn-id: http://dev.piwik.org/svn/trunk@6283 59fd770c-687e-43c8-a1e3-f5a4ff64c105 --- misc/log-analytics/import_logs.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/misc/log-analytics/import_logs.py b/misc/log-analytics/import_logs.py index c3a9c0c0f8..909d973dbb 100755 --- a/misc/log-analytics/import_logs.py +++ b/misc/log-analytics/import_logs.py @@ -951,10 +951,9 @@ class Recorder(object): stats.dates_recorded.add(hit.date.date()) - if config.options.strip_query_string: - path = hit.path - else: - path = '%s%s%s' % (hit.path, config.options.query_string_delimiter, hit.query_string) + path = hit.path + if hit.query_string and not config.options.strip_query_string: + path += config.options.query_string_delimiter + hit.query_string args = { 'rec': '1', -- GitLab