mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-06 05:52:12 +08:00
fix old route sorting (#31787)
* fix old route sorting * cleanup * Update system/loggerd/uploader.py --------- Co-authored-by: Comma Device <device@comma.ai> old-commit-hash: 158e36976b8793610ac1f39f51d82f5eeeb099b2
This commit is contained in:
@@ -44,7 +44,9 @@ class FakeResponse:
|
||||
|
||||
|
||||
def get_directory_sort(d: str) -> list[str]:
|
||||
return [s.rjust(10, '0') for s in d.rsplit('--', 1)]
|
||||
# ensure old format is sorted sooner
|
||||
o = ["0", ] if d.startswith("2024-") else ["1", ]
|
||||
return o + [s.rjust(10, '0') for s in d.rsplit('--', 1)]
|
||||
|
||||
def listdir_by_creation(d: str) -> list[str]:
|
||||
if not os.path.isdir(d):
|
||||
|
||||
Reference in New Issue
Block a user