Skip to content

Commit

Permalink
removing comments and unuseful prints
Browse files Browse the repository at this point in the history
  • Loading branch information
Azzouz-Thuderoz committed Jan 3, 2024
1 parent ef7789e commit 70016cd
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/zbmath_rest2oai/getWithSwagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,17 +155,13 @@ def func_get_doc_to_xml(obj, xml):
xml = append_text_child(xmld, xml, 'reference', "")
xml = xml.lastChild

print("HHEHREEEE")
print(xml.nodeName)
xml = append_text_child(xmld, xml, key, new_obj[key])


elif type(new_obj[key]) in [[], None]:
xml = append_text_child(xmld, xml, key, 'missing')
else:
print('HEREE33')
print(key)
print(new_obj[key])

if xml.nodeName == 'zbmath:references':
b = xml.getElementsByTagName('zbmath:reference')
b = [s for s in b if not b == '']
Expand Down Expand Up @@ -193,9 +189,8 @@ def func_get_doc_to_xml(obj, xml):
elif xml.nodeName=="zbmath:references":
xml = append_text_child(xmld, xml, 'reference', "")
else:
print("HERE0" + xml.nodeName)
print(xml.nodeName)
elif xml.lastChild is not None:
#print(xml.nodeName)
if xml.lastChild.nodeName == "zbmath:review":
xml = append_text_child(xmld, xml.lastChild, key, "")

Expand Down Expand Up @@ -241,7 +236,6 @@ def func_get_doc_to_xml(obj, xml):
if xml.nodeName == "oai_zb_preview:zbmath":
xml = append_text_child(xmld, xml, key, "")
if xml.nodeName == "zbmath:references":
#xml = xml.lastChild
xml = append_text_child(xmld, xml.lastChild, key, "")

else:
Expand Down

0 comments on commit 70016cd

Please sign in to comment.