diff options
Diffstat (limited to 'src/web')
-rw-r--r-- | src/web/views/article.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/web/views/article.py b/src/web/views/article.py index 6e565f36..407345c3 100644 --- a/src/web/views/article.py +++ b/src/web/views/article.py @@ -5,6 +5,8 @@ from flask import (Blueprint, g, render_template, redirect, from flask.ext.babel import gettext from flask.ext.login import login_required, current_user + +from bootstrap import db from web.export import export_json, export_html from web.lib.utils import clear_string, redirect_url from web.controllers import (ArticleController, UserController, @@ -123,6 +125,7 @@ def expire(): 'retrieved_date__lt': weeks_ago}) count = query.count() query.delete() + db.session.commit() flash(gettext('%(count)d articles deleted', count=count), 'info') return redirect(redirect_url()) |