[Pkg-debile-commits] [debile-master] 107/126: Forgot one Session() definition
Sylvestre Ledru
sylvestre at alioth.debian.org
Mon Aug 19 14:56:24 UTC 2013
This is an automated email from the git hooks/post-receive script.
sylvestre pushed a commit to branch scan-build-html
in repository debile-master.
commit 569afca33f83f15bc8551e5f862ddffb97a7a649
Author: Léo Cavaillé <leo at cavaille.net>
Date: Sat Jul 27 00:25:31 2013 +0200
Forgot one Session() definition
---
lucy/server.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lucy/server.py b/lucy/server.py
index 75eed5e..c37a54d 100644
--- a/lucy/server.py
+++ b/lucy/server.py
@@ -167,7 +167,6 @@ class LucyInterface(object):
@machine_method
def submit_report(self, report, job, failed):
# FIXME : put here a bridge to firewose ?
- session = Session()
"""
Submit a report from a run.
@@ -175,6 +174,7 @@ class LucyInterface(object):
job - job ID this relates to
failed - was it able to complete properly
"""
+ session = Session()
j = session.query(Job).filter(Job.id == job_id).one()
package = job.get_package()
#report = Report(report=report,
@@ -205,6 +205,7 @@ class LucyInterface(object):
"""
Close a job after pushing reports / binaries up.
"""
+ session = Session()
j = session.query(Job).filter(Job.id == job_id).one()
j.finished_at = dt.datetime.utcnow()
session.commit()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-master.git
More information about the Pkg-debile-commits
mailing list