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

Fix empty strings in AthenadRecentlyViewedRoutes parameter
This commit is contained in:
Dean Lee
2025-05-08 23:31:06 +08:00
committed by GitHub
parent 73ee0c022f
commit 33849245d8
+1 -1
View File
@@ -89,7 +89,7 @@ class Uploader:
def list_upload_files(self, metered: bool) -> Iterator[tuple[str, str, str]]:
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):
path = os.path.join(self.root, logdir)