From d750aad63260635d478c26abf02cea2a36ab1f7f Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Tue, 5 Sep 2017 10:39:06 -0400 Subject: [PATCH] Fix variables --- master.cfg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/master.cfg b/master.cfg index deb5bd2..f383fd2 100644 --- a/master.cfg +++ b/master.cfg @@ -790,11 +790,13 @@ class ComputeTryBuildCount (steps.BuildStep): count = 0 else: builder = self.getProperty ('buildername') + rev = self.getProperty ('got_revision') + branch = self.getProperty ('branch') db_file = os.path.join (get_web_base (), builder, builder + '.db') con = sqlite3.connect (db_file) c = con.cursor () - c.execute ('SELECT COUNT(*) FROM logs WHERE commitid = "%s" AND branch = "%s" AND trysched = 1' % (sourcestamp.revision, branch)) + c.execute ('SELECT COUNT(*) FROM logs WHERE commitid = "%s" AND branch = "%s" AND trysched = 1' % (rev, branch)) count = c.fetchone ()[0] con.close ()