From c3fc4479fc932ac9cdae39d00c79c96811b1edbd Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 7 May 2020 15:36:12 +0200 Subject: Imports: use the first formater for duplicates fields --- ishtar_common/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index b804739ad..d0612d648 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -2706,7 +2706,7 @@ def get_external_id(key, item): formula = getattr(profile, key) dct = {} for fkey in PARSE_FORMULA.findall(formula): - filtered = fkey.split(u'|') + filtered = fkey.split('|') initial_key = fkey[:] fkey = filtered[0] filters = [] @@ -2740,7 +2740,7 @@ def get_external_id(key, item): value = values[0] for filtr in values[1:]: if filtr not in FORMULA_FILTERS: - value += u'||' + filtr + value += '||' + filtr continue value = FORMULA_FILTERS[filtr](value) return value -- cgit v1.2.3