Commit 67bd0e1e authored by Ad Schellevis's avatar Ad Schellevis

(IDS) fix empty query result on single item

parent 27846e1b
......@@ -60,9 +60,9 @@ def reverse_log_reader(filename, block_size = 8192, start_pos=None):
eol = data.rfind('\n')
# field line and position in file
yield {'line':line.strip(),'pos':line_end}
if file_byte_start == 0 and eol == -1:
# flush last line
yield {'line':data.strip(),'pos':len(data)}
if file_byte_start == 0 and eol == -1:
# flush last line
yield {'line':data.strip(),'pos':len(data)}
if file_byte_start == 0:
break
Markdown is supported
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