LogReader: fix sort by time and union types (#31565)

* fix :(

* test_sort_by_time

* this isn't required

* not slow, and just compare sorted

* messy

* works

* clean up

* clean up

* not here

* clean up

* clean up

* clean up

* makes network call

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
old-commit-hash: e964c5944d4342b6e08ca872eacf9d524a49b479
This commit is contained in:
Shane Smiskol
2024-03-08 02:49:24 -08:00
committed by GitHub
parent b286b84044
commit bc7664aa2b
2 changed files with 40 additions and 1 deletions
+1 -1
View File
@@ -248,7 +248,7 @@ are uploaded or auto fallback to qlogs with '/a' selector at the end of the rout
def _get_lr(self, i):
if i not in self.__lrs:
self.__lrs[i] = _LogFileReader(self.logreader_identifiers[i])
self.__lrs[i] = _LogFileReader(self.logreader_identifiers[i], sort_by_time=self.sort_by_time, only_union_types=self.only_union_types)
return self.__lrs[i]
def __iter__(self):