mswart / pyopenmensa

Python wrapper and helper for openmensa api and feed
http://pyom.devtation.de/
GNU Lesser General Public License v3.0
9 stars 7 forks source link

Ordered (deterministic) XML output #11

Closed j-maas closed 6 years ago

j-maas commented 6 years ago

A meal's notes were output in the order of insertion and the prices' ordering was machine dependent (dict key iteration order is implementation detail). This meant that the generated XML would practically display notes and prices in random order.

While this isn't important to the end user, this PR's change allows for much easier (unit-)testing of the output of a parser.

j-maas commented 6 years ago

@mswart, are you ready to merge this PR? :)