oops house keeping work

This commit is contained in:
Steve Nyemba 2021-02-16 12:45:34 -06:00
parent cddb6a98c8
commit 870b703296
1 changed files with 3 additions and 2 deletions

View File

@ -522,8 +522,7 @@ class Parser (Process):
if not schema :
merger = jsonmerge
_claim = merger.merge(DEFAULT_VALUE.copy(),_claim)
print (['billing_pr_name' in _claim, 'billing_pr_name' in DEFAULT_VALUE])
_claim = merger.merge(DEFAULT_VALUE.copy(),_claim)
claims.append( _claim)
segment = [row]
@ -546,6 +545,8 @@ class Parser (Process):
else:
schema = None
#
# @TODO: Fix merger related to schema (drops certain fields ... NOT cool)
if not schema :
merger = jsonmerge
merger = jsonmerge.Merger(schema)