aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-03-15 23:59:56 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-03-15 23:59:56 +0100
commit17bf200599ec978d8833a22aac85a803395d5207 (patch)
treef23865c39284715fae64b0af53e363dd1861b42f
parentA new test for the history page. (diff)
downloadnewspipe-17bf200599ec978d8833a22aac85a803395d5207.tar.gz
newspipe-17bf200599ec978d8833a22aac85a803395d5207.tar.bz2
newspipe-17bf200599ec978d8833a22aac85a803395d5207.zip
forgot login required decorator
-rw-r--r--pyaggr3g470r/views/views.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pyaggr3g470r/views/views.py b/pyaggr3g470r/views/views.py
index b7ccf955..c6f0d3d0 100644
--- a/pyaggr3g470r/views/views.py
+++ b/pyaggr3g470r/views/views.py
@@ -541,6 +541,7 @@ def management():
@app.route('/history', methods=['GET'])
@app.route('/history/<int:year>', methods=['GET'])
@app.route('/history/<int:year>/<int:month>', methods=['GET'])
+@login_required
def history(year=None, month=None):
articles_counter, articles = utils.history(year, month)
return render_template('history.html', articles_counter=articles_counter,
bgstack15