Skip to content
Snippets Groups Projects
Commit be4772ca authored by Max Lou's avatar Max Lou
Browse files

Adding description to engine result

parent 35929fde
Branches
No related tags found
No related merge requests found
......@@ -22,8 +22,15 @@ def main(analytics_token, api_url):
for result in my_engine_results
]
description = {
"de": "Diese Analyse summiert sämtliche gespeicherten xAPI Statements, die im Primären-LRS gespeichert sind",
"en": "This analysis sums all stored xAPI statements stored in the primary LRS",
}
# Send result to rights engine
save_results(api_url, analytics_token, {"result": result})
save_results(
api_url, analytics_token, {"result": result, "description": description}
)
except HTTPError as error:
print(error.response.status_code, error.response.text)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment