Skip to content

Commit

Permalink
basic functions to generate URLs for 2 new pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Claire Rioualen authored and Claire Rioualen committed Feb 1, 2024
1 parent 9cbb195 commit 7746ba2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/webapp/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,27 @@ def index():
new_formats=res['nb_formats'] - res_last['nb_formats']
)

@app.route('/current_panorama')
def current():
res = get_edam_numbers(g)

return render_template('current.html',
topics=res['nb_topics'],
operations=res['nb_operations'],
data=res['nb_data'],
formats=res['nb_formats']
)

@app.route('/expert_curation')
def expert_curation():
# 1. select a topic
# 2. select topic-specific curation actions (subclasses of the identified topic)
return render_template('expert_curation.html')
@app.route('/hot_topic')
def hot_topic():
# 1. select a topic
# 2. select topic-specific curation actions (subclasses of the identified topic)
return render_template('hot_topic.html')

def get_edam_numbers(g):
query_op = """
Expand Down

0 comments on commit 7746ba2

Please sign in to comment.