fedora_elections/__init__.py | 11 +++++++++-- files/fedora-elections.spec | 6 +++++- 2 files changed, 14 insertions(+), 3 deletions(-)
New commits: commit ce7c56b53c7e9a9f0395dd0e5160c08619552939 Author: Pierre-Yves Chibon pingou@pingoured.fr Date: Mon Apr 13 16:13:07 2015 +0200
Release 2.5.1
diff --git a/fedora_elections/__init__.py b/fedora_elections/__init__.py index dd6e7f2..7c1d48b 100644 --- a/fedora_elections/__init__.py +++ b/fedora_elections/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright © 2012 Red Hat, Inc. +# Copyright © 2012-2015 Red Hat, Inc. # Copyright © 2012 Ian Weller ianweller@fedoraproject.org # Copyright © 2012 Toshio Kuratomi tkuratom@redhat.com # Copyright © 2012 Frank Chiulli fchiulli@fedoraproject.org @@ -24,7 +24,7 @@ # Pierre-Yves Chibon pingou@fedoraproject.org #
-__version__ = '2.5.0' +__version__ = '2.5.1'
import logging import os diff --git a/files/fedora-elections.spec b/files/fedora-elections.spec index b58f34d..a5493b1 100644 --- a/files/fedora-elections.spec +++ b/files/fedora-elections.spec @@ -1,7 +1,7 @@ %define modname fedora_elections
Name: fedora-elections -Version: 2.5.0 +Version: 2.5.1 Release: 1%{?dist} Summary: Fedora elections application
@@ -111,6 +111,10 @@ install -m 644 files/update_1_to_2.sql \
%changelog +* Mon Apr 13 2015 Pierre-Yves Chibon pingou@pingoured.fr - 2.5.1-1 +- Update to 2.5.1 +- Close the DB connection at the end of the request + * Thu Feb 12 2015 Pierre-Yves Chibon pingou@pingoured.fr - 2.5.0-1 - Update to 2.5.0 - Improve the result page by including in it a graph of the evolution of the
commit 4fd544321108028da3fcb8a1dc7a12cafc243479 Merge: adea731 4e03133 Author: Pierre-Yves Chibon pingou@pingoured.fr Date: Mon Apr 13 16:08:53 2015 +0200
Merge pull request #41 from fedora-infra/drop_session
Remove the DB session at the end of the request
commit 4e031339de7feb08c17c67aa7957219f03375478 Author: Pierre-Yves Chibon pingou@pingoured.fr Date: Mon Apr 13 16:00:57 2015 +0200
Remove the DB session at the end of the request
diff --git a/fedora_elections/__init__.py b/fedora_elections/__init__.py index 683b828..dd6e7f2 100644 --- a/fedora_elections/__init__.py +++ b/fedora_elections/__init__.py @@ -191,6 +191,13 @@ def set_session(): flask.session.permanent = True
+# pylint: disable=W0613 +@APP.teardown_request +def shutdown_session(exception=None): + """ Remove the DB session at the end of each request. """ + SESSION.remove() + + # LIST VIEWS #############################################
@APP.route('/')
elections-devel@lists.stg.fedorahosted.org