Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -74,8 +74,6 @@ def log(req: str = '', resp: str = ''):
|
|
74 |
req_element.text = req
|
75 |
resp_element = ET.SubElement(element, "response")
|
76 |
resp_element.text = resp
|
77 |
-
|
78 |
-
element.text = "\n".join(article["content"])
|
79 |
|
80 |
with open(destination_path, "ab+") as xml_file:
|
81 |
xml_file.write(ET.tostring(element, encoding="utf-8"))
|
|
|
74 |
req_element.text = req
|
75 |
resp_element = ET.SubElement(element, "response")
|
76 |
resp_element.text = resp
|
|
|
|
|
77 |
|
78 |
with open(destination_path, "ab+") as xml_file:
|
79 |
xml_file.write(ET.tostring(element, encoding="utf-8"))
|