uploader.py: fix empty string handing in AthenadRecentlyViewedRoutes parameter (#35139)

Fix empty strings in AthenadRecentlyViewedRoutes parameter
pull/35161/head
Dean Lee 4 months ago committed by GitHub
parent 73ee0c022f
commit 33849245d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      system/loggerd/uploader.py

@ -89,7 +89,7 @@ class Uploader:
def list_upload_files(self, metered: bool) -> Iterator[tuple[str, str, str]]: def list_upload_files(self, metered: bool) -> Iterator[tuple[str, str, str]]:
r = self.params.get("AthenadRecentlyViewedRoutes", encoding="utf8") r = self.params.get("AthenadRecentlyViewedRoutes", encoding="utf8")
requested_routes = [] if r is None else r.split(",") requested_routes = [] if r is None else [route for route in r.split(",") if route]
for logdir in listdir_by_creation(self.root): for logdir in listdir_by_creation(self.root):
path = os.path.join(self.root, logdir) path = os.path.join(self.root, logdir)

Loading…
Cancel
Save