uprank
This commit is contained in:
parent
c12df14684
commit
87172b3c99
1 changed files with 5 additions and 0 deletions
|
@ -182,6 +182,7 @@ def node(node,user_list=""):
|
||||||
)
|
)
|
||||||
|
|
||||||
@bp.route('/node/<node>.json')
|
@bp.route('/node/<node>.json')
|
||||||
|
@bp.route('/node/<node>/uprank/<user_list>.json')
|
||||||
def node_json(node,user_list=""):
|
def node_json(node,user_list=""):
|
||||||
default_rank = ['agora', 'flancian']
|
default_rank = ['agora', 'flancian']
|
||||||
rank = user_list.split(",")
|
rank = user_list.split(",")
|
||||||
|
@ -273,6 +274,10 @@ def users():
|
||||||
def journals():
|
def journals():
|
||||||
return render_template('nodes.html', header="Journals", nodes=db.all_journals())
|
return render_template('nodes.html', header="Journals", nodes=db.all_journals())
|
||||||
|
|
||||||
|
@bp.route('/journals.json')
|
||||||
|
def journals_json():
|
||||||
|
return jsonify(jsons.dump(db.all_journals()))
|
||||||
|
|
||||||
@bp.route('/asset/<user>/<asset>')
|
@bp.route('/asset/<user>/<asset>')
|
||||||
def asset(user, asset):
|
def asset(user, asset):
|
||||||
# An asset is a binary in someone's garden/<user>/assets directory.
|
# An asset is a binary in someone's garden/<user>/assets directory.
|
||||||
|
|
Loading…
Reference in a new issue