forked from AFPy/afpy.org
Correction de l'étiquette racine des articles
This commit is contained in:
parent
5beabb2214
commit
e6fa2b6117
2
afpy.py
2
afpy.py
|
@ -138,7 +138,7 @@ def save_post(name, timestamp=None):
|
|||
else:
|
||||
abort(404)
|
||||
post = root / name / status / timestamp / 'post.xml'
|
||||
tree = ElementTree.Element('item')
|
||||
tree = ElementTree.Element('entry')
|
||||
for key, value in request.form.items():
|
||||
element = ElementTree.SubElement(tree, key)
|
||||
element.text = value
|
||||
|
|
Loading…
Reference in New Issue
Block a user