Skip to content

Commit cd351e8

Browse files
committed
remove scipts from items in list_github_folders
1 parent 563f5b5 commit cd351e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/probeinterface/library.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,4 +289,4 @@ def list_github_folders(owner: str, repo: str, path: str = "", ref: str = None,
289289
if resp.status_code != 200:
290290
raise RuntimeError(f"GitHub API returned status {resp.status_code}: {resp.text}")
291291
items = resp.json()
292-
return [item["name"] for item in items if item.get("type") == "dir" and item["name"][0] != "."]
292+
return [item["name"] for item in items if item.get("type") == "dir" and item["name"][0] != "." and item["name"] != "scripts"]

0 commit comments

Comments
 (0)