Skip to content

Commit

Permalink
Merge pull request #237 from gisce/fix_capcalera_29_2
Browse files Browse the repository at this point in the history
ara si
  • Loading branch information
eberloso committed Sep 26, 2023
2 parents 791d5ef + 78e361c commit 410c053
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 410c053

Please sign in to comment.