SingleSiteBot,
)
+from wrpylib.json_tools import order_json_keys
+
docuReplacements = {'¶ms;': pagegenerators.parameterHelp}
content_json = json.loads(self.current_page.text)
try:
validate(instance=content_json, schema=self.sledrun_schema)
- text = json.dumps(content_json, ensure_ascii=False, indent=4)
+
+ content_json_ordered = order_json_keys(content_json, self.sledrun_schema)
+ assert content_json_ordered == content_json
+ text = json.dumps(content_json_ordered, ensure_ascii=False, indent=4)
+
except jsonschema.exceptions.ValidationError as e:
text = str(e)
+
summary = 'JSON Daten aktualisiert.'
self.put_current(text, summary=summary)