diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-03-16 07:22:52 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-03-16 07:22:52 +0100 |
commit | 8d0fea82761f2fdc1ea93687429990eefa851fc8 (patch) | |
tree | f93d515b5694efbb7b94ee02e361473731c8d4dc /pyaggr3g470r/views/views.py | |
parent | forgot login required decorator (diff) | |
download | newspipe-8d0fea82761f2fdc1ea93687429990eefa851fc8.tar.gz newspipe-8d0fea82761f2fdc1ea93687429990eefa851fc8.tar.bz2 newspipe-8d0fea82761f2fdc1ea93687429990eefa851fc8.zip |
Improvements and fixes for the history() function.
Diffstat (limited to 'pyaggr3g470r/views/views.py')
-rw-r--r-- | pyaggr3g470r/views/views.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pyaggr3g470r/views/views.py b/pyaggr3g470r/views/views.py index c6f0d3d0..9aefd6b1 100644 --- a/pyaggr3g470r/views/views.py +++ b/pyaggr3g470r/views/views.py @@ -543,10 +543,11 @@ def management(): @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, - articles=articles, - year=year, month=month) + articles_counter, articles = utils.history(g.user.id, year, month) + return render_template('history.html', + articles_counter=articles_counter, + articles=articles, + year=year, month=month) @app.route('/bookmarklet', methods=['GET']) @app.route('/create_feed', methods=['GET', 'POST']) |