Skip to content
Snippets Groups Projects
Commit ede50e20 authored by Simoes Brambila, Danilo (brambila)'s avatar Simoes Brambila, Danilo (brambila)
Browse files

correcting the openning and closing of calc_to_calc_ref

parent 740146a8
No related branches found
No related tags found
No related merge requests found
......@@ -19,16 +19,19 @@ metaInfoEnv, warns = loadJsonFile(filePath=metaInfoPath,
uri=None)
def prep_ref(ref_listP, ref_listS, Emit, kindP, kindS):
sCalc = Emit.openSection("section_calculation_to_calculation_refs")
# sCalc = Emit.openSection("section_calculation_to_calculation_refs")
for ref in ref_listP:
sCalc = Emit.openSection("section_calculation_to_calculation_refs")
Emit.addValue("calculation_to_calculation_kind", kindP)
Emit.addValue("calculation_to_calculation_external_url", ref)
Emit.closeSection("section_calculation_to_calculation_refs", sCalc)
Emit.closeSection("section_calculation_to_calculation_refs", sCalc)
sCalc = Emit.openSection("section_calculation_to_calculation_refs")
for ref in ref_listS:
sCalc = Emit.openSection("section_calculation_to_calculation_refs")
Emit.addValue("calculation_to_calculation_kind", kindS)
Emit.addValue("calculation_to_calculation_external_url", ref)
Emit.closeSection("section_calculation_to_calculation_refs", sCalc)
Emit.closeSection("section_calculation_to_calculation_refs", sCalc)
def parse(name):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment