Fix include_journals=False

This commit is contained in:
2021-03-07 21:21:37 +01:00
parent 1ffe13bc75
commit ba8245bfe4
+2 -5
View File
@@ -96,15 +96,12 @@ class Graph:
# then we iterate over its values and construct nodes for each list of subnodes.
nodes = {}
for wikilink in wikilink_to_subnodes:
if not include_journals and util.is_journal(wikilink):
pass
node = Node(wikilink)
node.subnodes = wikilink_to_subnodes[wikilink]
nodes[wikilink] = node
# remove journals if so desired.
# if not include_journals:
# nodes = [node for node in nodes if not util.is_journal(node.wikilink)]
current_app.logger.debug('*** Graph loaded.')
return nodes
# TODO: experiment with other ranking.