fix bug preventing offline heartbeats from being purged
This commit is contained in:
parent
f18da681d3
commit
67badc336c
1 changed files with 1 additions and 3 deletions
|
@ -16,8 +16,6 @@ import os
|
||||||
import traceback
|
import traceback
|
||||||
from time import sleep
|
from time import sleep
|
||||||
|
|
||||||
from .compat import u
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import sqlite3
|
import sqlite3
|
||||||
HAS_SQL = True
|
HAS_SQL = True
|
||||||
|
@ -93,7 +91,7 @@ class Queue(object):
|
||||||
for row_name in ['file', 'time', 'project', 'language', 'lines', 'branch', 'is_write']:
|
for row_name in ['file', 'time', 'project', 'language', 'lines', 'branch', 'is_write']:
|
||||||
if row[index] is not None:
|
if row[index] is not None:
|
||||||
clauses.append('{0}=?'.format(row_name))
|
clauses.append('{0}=?'.format(row_name))
|
||||||
values.append(u(row[index]))
|
values.append(row[index])
|
||||||
else:
|
else:
|
||||||
clauses.append('{0} IS NULL'.format(row_name))
|
clauses.append('{0} IS NULL'.format(row_name))
|
||||||
index += 1
|
index += 1
|
||||||
|
|
Loading…
Reference in a new issue