Skip to content

Commit

Permalink
FInal fix final
Browse files Browse the repository at this point in the history
  • Loading branch information
eberloso committed Jun 26, 2024
1 parent 579fcca commit c673263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gestionatr/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ def request_atr_29(url, user, password, xml_str=None, params=None):

# Clean XML
xml_str = xml_str.strip()
xml_str = xml_str.replace("'utf-8'", "'UTF-8'")
xml_str = re.sub(r'<\?.*\?>', '', xml_str)
xml_str = xml_str.replace("""<sctdapplication xmlns="http://localhost/sctd/A529">""", "")
xml_str = xml_str.replace("""</sctdapplication>""", "")
Expand Down Expand Up @@ -161,6 +160,7 @@ def find_child(element, child_name):

res = re.sub(r'\<[^: \n>/]+:', '<', res)
res = re.sub(r'\</[^: \n>/]+:', '</', res)
res = re.sub(r'<\?.*\?>', '', res)
res = res.replace("<consultaCupsResponse>", """<sctdapplication>""")
res = res.replace("</consultaCupsResponse>", """</sctdapplication>""", 1)
aux = etree.fromstring(res)
Expand Down

0 comments on commit c673263

Please sign in to comment.