aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r--pyaggr3g470r/views.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py
index 7d5eeb30..a1a2055f 100644
--- a/pyaggr3g470r/views.py
+++ b/pyaggr3g470r/views.py
@@ -61,4 +61,9 @@ def favorites():
if article.like:
favorites[feed.title].append(article)
- return render_template('favorites.html', favorites=favorites) \ No newline at end of file
+ return render_template('favorites.html', favorites=favorites)
+
+@app.route('/management/', methods=['GET'])
+def management():
+ nb_article = len(models.Article.objects())
+ return render_template('management.html', nb_article=nb_article) \ No newline at end of file
bgstack15