Patch index.

This commit is contained in:
Flancian 2020-12-27 20:44:09 +01:00
parent 1ecf9b262b
commit b2402c34d7
1 changed files with 4 additions and 5 deletions

View File

@ -30,17 +30,16 @@ G = db.G
@bp.route('/')
def index():
node='index'
n = db.wikilink_to_node(node)
n = G.node(node)
return render_template(
'node_rendered.html',
wikilink=node,
subnodes=util.rank(db.subnodes_by_wikilink(node),
user='agora'),
node=n,
backlinks=[x.wikilink for x in db.nodes_by_outlink(node)],
pushlinks=n.push_links() if n else [],
pull_nodes=n.pull_nodes() if n else [],
forwardlinks=n.forward_links() if n else [],
)
@bp.route('/help')
def help():
current_app.logger.warning('Not implemented.')