Commit 8df992c8 authored by Inductiveload's avatar Inductiveload
Browse files

WS-stat: init indexes correctly

parent 0545dd89
......@@ -189,12 +189,12 @@ ON DUPLICATE KEY UPDATE
cursor = self.ih_conn.cursor()
cursor.execute("SELECT index_updated from indexes where index_id=%s", (index_id,))
res = cursor.fetchone()[0]
res = cursor.fetchone()
if res is None:
if not res:
return None
return bytes(res)
return bytes(res[0])
def cache_rev_sql_results(self, sql_results):
ih_cursor = self.ih_conn.cursor()
......@@ -251,6 +251,9 @@ ON DUPLICATE KEY UPDATE
total_cached = 0
# First init the indexes
for index in indexes:
time =
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment