return cur.fetchone()[0]
def harmonize_timeformat(time):
- logger_debug('1 time = %s' % time)
+ logger.debug('1 time = %s' % time)
if time != 'NULL':
if time.isdigit():
- logger_debug('2 time = %s' % time)
+ logger.debug('2 time = %s' % time)
time = "to_timestamp('%s')" % time
- logger_debug('3 time = %s' % time)
+ logger.debug('3 time = %s' % time)
else:
time = "'%s'" % time
- logger_debug('4 time = %s' % time)
+ logger.debug('4 time = %s' % time)
return time
def db_add_build(con, db_id, number, start, end, status):