fix bug preventing offline heartbeats from being purged

This commit is contained in:
Alan Hamlett 2014-12-05 02:33:31 -08:00
parent f18da681d3
commit 67badc336c
1 changed files with 1 additions and 3 deletions

View File

@ -16,8 +16,6 @@ import os
import traceback
from time import sleep
from .compat import u
try:
import sqlite3
HAS_SQL = True
@ -93,7 +91,7 @@ class Queue(object):
for row_name in ['file', 'time', 'project', 'language', 'lines', 'branch', 'is_write']:
if row[index] is not None:
clauses.append('{0}=?'.format(row_name))
values.append(u(row[index]))
values.append(row[index])
else:
clauses.append('{0} IS NULL'.format(row_name))
index += 1