mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 11:26:13 +00:00
(IDS) fix empty query result on single item
This commit is contained in:
parent
27846e1b0e
commit
67bd0e1e6e
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user