From: Holger Levsen Date: Fri, 12 Oct 2012 15:44:49 +0000 (+0200) Subject: fix time handling X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=e5566344930891c0f710e736fa6ffc8ac72b1221;p=profitbricks%2Fjenkins-build-scripts.git fix time handling --- diff --git a/db_add.py b/db_add.py index a9f42c9..cfa7521 100755 --- a/db_add.py +++ b/db_add.py @@ -29,7 +29,7 @@ def db_add_job(con, name): #logger.debug("INSERT INTO jenkins_job(name) VALUES('%s')" % (name)) return cur.fetchone()[0] -def harmonize_timeformat(time) +def harmonize_timeformat(time): if time != 'NULL': if time.isdigit(): time = "to_timestamp('%s')" % time