Commit 9a69712d authored by Kantz's avatar Kantz
Browse files

doppelte ausgabe verhindert und neighbors score auf 0

parent 6ed827f0
......@@ -476,7 +476,7 @@ def retrieve(
d.section_index, d.subsection_index, d.child_index,
d.section_title, d.subsection_title, d.title, d.type,
d.path, d.markdown,
0.9 AS score
0 AS score
FROM docs d
JOIN unnest(%(sec_arr)s::int[], %(sub_arr)s::int[], %(child_arr)s::int[]) AS u(sec, sub, child)
ON d.section_index = u.sec AND d.subsection_index = u.sub AND d.child_index = u.child
......@@ -489,7 +489,6 @@ def retrieve(
child_uids = {child.uid for child in children}
neighbors = [neighbor for neighbor in neighbors if neighbor.uid not in child_uids]
retrivla_dict = {
"children": children,
"children_direct": children_direct,
"children_expanded": children_expanded,
"subsections": subsections,
......
Supports Markdown
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