Skip to content

Commit

Permalink
Merge pull request #1385 from swirlai/fix-DS-2447
Browse files Browse the repository at this point in the history
Fix 'k' typo
  • Loading branch information
sid-swirl authored Jul 3, 2024
2 parents f8335b1 + fbadb3c commit 0b5aea2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions swirl/processors/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,16 +423,16 @@ def process(self):
if k == 'payload':
continue
if k in item['payload']:
if not item['k']:
if not item[k]:
if type(item['payload'][k]) == str:
item['k'] = item['payload'][k]
item[k] = item['payload'][k]
automapped_fields.append(k)
self.warning("copying payload field {k}")
for f in field_scan_list:
if f.startswith(k) or f.endswith(k):
if not item['k']:
if not item[k]:
if type(item['payload'][f]) == str:
item['k'] = item['payload'][f]
item[k] = item['payload'][f]
automapped_fields.append(f)
self.warning("copying payload field {f}")

Expand Down

0 comments on commit 0b5aea2

Please sign in to comment.