Skip to content

Commit

Permalink
ara si
Browse files Browse the repository at this point in the history
  • Loading branch information
eberloso committed Sep 26, 2023
1 parent 791d5ef commit 78e361c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gestionatr/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,10 @@ def find_child(element, child_name):

res = re.sub(r'\<[^: \n/]+:', '<', res)
res = re.sub(r'\</[^: \n/]+:', '</', res)
res = res.replace("consultaCupsResponse", """sctdapplication xmlns="http://localhost/sctd/A629""")
res = res.replace("<consultaCupsResponse>", """<sctdapplication>""")
res = res.replace("</consultaCupsResponse>", """</sctdapplication>""", 1)
aux = etree.fromstring(res)
aux_res = find_child(aux, "a629")
aux_res = find_child(aux, "sctdapplication")

res = etree.tostring(aux_res)
return res
Expand Down

0 comments on commit 78e361c

Please sign in to comment.