Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorCyril Bonté <cyril.bonte@free.fr>2014-06-05 03:04:26 +0400
committerCyril Bonté <cyril.bonte@free.fr>2014-06-06 23:30:27 +0400
commitb9d70f14a68f0bc20f80d099bc5f3792df74a8cc (patch)
treef579403f3ce23ee6ff9d9a4720a85f21956912e7 /misc
parentb15f42f52cc0e83c481777dade7ae3f8c9449ee8 (diff)
use a tuple ase the cache key instead of string concatenation
As suggested by cbay, the cache key can be a tuple instead of a string concatenation.
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/log-analytics/import_logs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/log-analytics/import_logs.py b/misc/log-analytics/import_logs.py
index d43b5e56be..59ba002591 100755
--- a/misc/log-analytics/import_logs.py
+++ b/misc/log-analytics/import_logs.py
@@ -1687,7 +1687,7 @@ class Parser(object):
timezone_key = format.get('timezone')
except BaseFormatException:
timezone_key = ''
- date_key = format.get('date') + '|' + timezone_key
+ date_key = (format.get('date'), timezone_key)
hit.date = cache_dates.get(date_key)
if not hit.date:
date_string = format.get('date')