diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-03-15 23:59:56 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-03-15 23:59:56 +0100 |
commit | 17bf200599ec978d8833a22aac85a803395d5207 (patch) | |
tree | f23865c39284715fae64b0af53e363dd1861b42f /pyaggr3g470r/views | |
parent | A new test for the history page. (diff) | |
download | newspipe-17bf200599ec978d8833a22aac85a803395d5207.tar.gz newspipe-17bf200599ec978d8833a22aac85a803395d5207.tar.bz2 newspipe-17bf200599ec978d8833a22aac85a803395d5207.zip |
forgot login required decorator
Diffstat (limited to 'pyaggr3g470r/views')
-rw-r--r-- | pyaggr3g470r/views/views.py | 1 |
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, |