Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #8 from UCBoulder/new-field-xml
Browse files Browse the repository at this point in the history
DS-491 #Updated Convert data type to string for XML
  • Loading branch information
bencroft authored Oct 5, 2022
2 parents 4c13f25 + 2ae564f commit 71694bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/utility/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def create_books(books_json):

# for each property of the flat book, create an XML element
for key, val in book.items():
e.SubElement(course_book, key).text = val
e.SubElement(course_book, key).text = str(val)

xmlstr = e.tostring(root, encoding="unicode", method="xml")
return xmlstr

0 comments on commit 71694bf

Please sign in to comment.