diff options
author | Cyril Bonté <cyril.bonte@free.fr> | 2014-06-05 03:04:26 +0400 |
---|---|---|
committer | Cyril Bonté <cyril.bonte@free.fr> | 2014-06-06 23:30:27 +0400 |
commit | b9d70f14a68f0bc20f80d099bc5f3792df74a8cc (patch) | |
tree | f579403f3ce23ee6ff9d9a4720a85f21956912e7 /misc | |
parent | b15f42f52cc0e83c481777dade7ae3f8c9449ee8 (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-x | misc/log-analytics/import_logs.py | 2 |
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') |