|
|
@ -28,7 +28,7 @@ class DataProvider: |
|
|
|
if after_time is None or after_time <= last_chunk_time: |
|
|
|
if after_time is None or after_time <= last_chunk_time: |
|
|
|
chunk = self.__load_chunk(chunk_index) |
|
|
|
chunk = self.__load_chunk(chunk_index) |
|
|
|
if after_time is not None: |
|
|
|
if after_time is not None: |
|
|
|
chunk = chunk[chunk['timestamp'] > after_time] |
|
|
|
chunk = chunk[chunk['timestamp'] >= after_time] |
|
|
|
result = pd.concat([result, chunk]) |
|
|
|
result = pd.concat([result, chunk]) |
|
|
|
return result |
|
|
|
return result |
|
|
|
|
|
|
|
|
|
|
@ -36,7 +36,7 @@ class DataProvider: |
|
|
|
for chunk_index, last_chunk_time in self.chunk_last_times.items(): |
|
|
|
for chunk_index, last_chunk_time in self.chunk_last_times.items(): |
|
|
|
if after_time < last_chunk_time: |
|
|
|
if after_time < last_chunk_time: |
|
|
|
chunk = self.__load_chunk(chunk_index) |
|
|
|
chunk = self.__load_chunk(chunk_index) |
|
|
|
chunk = chunk[chunk['timestamp'] > after_time] |
|
|
|
chunk = chunk[chunk['timestamp'] >= after_time] |
|
|
|
return chunk.index[0] |
|
|
|
return chunk.index[0] |
|
|
|
return self.size() |
|
|
|
return self.size() |
|
|
|
|
|
|
|
|
|
|
|