Change example data to contain HTML instead of JSON format

Then it's easier for us to show a more readable information about the data we collect

Contributes to CURA-6434.
This commit is contained in:
Diego Prado Gesto 2019-04-29 17:24:51 +02:00
parent 534a035841
commit 46f1f00cb9
4 changed files with 42 additions and 115 deletions

View file

@ -77,7 +77,7 @@ class SliceInfo(QObject, Extension):
if not plugin_path:
Logger.log("e", "Could not get plugin path!", self.getPluginId())
return None
file_path = os.path.join(plugin_path, "example_data.json")
file_path = os.path.join(plugin_path, "example_data.html")
if file_path:
with open(file_path, "r", encoding = "utf-8") as f:
self._example_data_content = f.read()