Skip to content

Commit

Permalink
fix: merge
Browse files Browse the repository at this point in the history
  • Loading branch information
dfguerrerom committed Oct 20, 2024
2 parents 4fd9a21 + 228064f commit ecf7521
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sepal_ui/sepalwidgets/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,14 +403,14 @@ def _get_items(self) -> List[v.ListItem]:
list_dir = [el for el in folder.glob("*") if not el.name.startswith(".")]

if self.extensions:
valid_list_dir = [] # New list to store valid entries
valid_list_dir = []
for el in list_dir:
try:
if el.is_dir() or el.suffix in self.extensions:
valid_list_dir.append(el)
except Exception:
continue
list_dir = valid_list_dir # Replace the original list with the filtered one
list_dir = valid_list_dir

if folder in self.cache_dirs:
if self.cache_dirs[folder]["files"] == list_dir:
Expand Down

0 comments on commit ecf7521

Please sign in to comment.