Commit 1cb27ab5 authored by nseydoux's avatar nseydoux
Browse files

Referenced new queries

parent 079237cc
......@@ -209,7 +209,15 @@ public class KBManager {
Map<String, String> subs = new HashMap<String, String>();
subs.put("id", Node.getInstance().getName());
try {
return this.constructModel(this.queries.getTemplateQueries().get("get_description").substitute(subs));
if(parent) {
return this.constructModel(
this.queries.getTemplateQueries()
.get("get_parent_description").substitute(subs));
} else {
return this.constructModel(
this.queries.getTemplateQueries()
.get("get_children_description").substitute(subs));
}
} catch (IncompleteSubstitutionException e) {
e.printStackTrace();
return null;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment