Skip to content
Snippets Groups Projects
Commit d5b07788 authored by David Rouquet's avatar David Rouquet
Browse files

add index to choice URI to fix display order

parent 5557b797
No related branches found
No related tags found
1 merge request!5Resolve "Parseur par type d'activité"
......@@ -252,7 +252,7 @@ class ExerciceQC(Exercice):
def save(self, graph: Graph):
super().save(graph)
for choice in self.choices.values():
choice_node = choice.save(graph, f"{self.id}_{choice.id}")
choice_node = choice.save(graph, f"{self.id}_{choice.index}_{choice.id}")
graph.add((NS[self.id], NS["aReponse"], choice_node))
# Our fake "class hierarchy" just for easier visualization
graph.add((choice_node, RDFS.subClassOf, NS[self.id]))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment