Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,10 @@ def is_ui_file(filename):
|
|
36 |
def get_file_contents(git_provider, repo_url, exclude_folders):
|
37 |
file_contents = []
|
38 |
logger.info(f"Fetching files from {git_provider} repository: {repo_url}")
|
39 |
-
|
|
|
|
|
|
|
40 |
if git_provider == "GitHub":
|
41 |
g = Github(GITHUB_TOKEN)
|
42 |
repo = g.get_repo(repo_url)
|
@@ -259,7 +262,8 @@ app.layout = dbc.Container([
|
|
259 |
[State("git-provider", "value"),
|
260 |
State("repo-url", "value"),
|
261 |
State("guide-type", "value"),
|
262 |
-
State(
|
|
|
263 |
)
|
264 |
def update_output(n_clicks, git_provider, repo_url, guide_type, exclude_folders):
|
265 |
if n_clicks is None:
|
|
|
36 |
def get_file_contents(git_provider, repo_url, exclude_folders):
|
37 |
file_contents = []
|
38 |
logger.info(f"Fetching files from {git_provider} repository: {repo_url}")
|
39 |
+
if exclude_folders is None:
|
40 |
+
exclude_folders = []
|
41 |
+
else:
|
42 |
+
exclude_folders = [folder.strip() for folder in exclude_folders.split(',') if folder.strip()]
|
43 |
if git_provider == "GitHub":
|
44 |
g = Github(GITHUB_TOKEN)
|
45 |
repo = g.get_repo(repo_url)
|
|
|
262 |
[State("git-provider", "value"),
|
263 |
State("repo-url", "value"),
|
264 |
State("guide-type", "value"),
|
265 |
+
State('exclude-folders-input', 'value')]
|
266 |
+
|
267 |
)
|
268 |
def update_output(n_clicks, git_provider, repo_url, guide_type, exclude_folders):
|
269 |
if n_clicks is None:
|