Spaces:
Running
Running
Commit
·
958b4cd
1
Parent(s):
d8c2a46
Update app.py
Browse files
app.py
CHANGED
@@ -98,11 +98,11 @@ def process_and_create_pull(icon_files,category, new_cateogry_check, new_categor
|
|
98 |
branch=branch_name
|
99 |
)
|
100 |
all_files = []
|
101 |
-
contents =
|
102 |
while contents:
|
103 |
file_content = contents.pop(0)
|
104 |
if file_content.type == "dir":
|
105 |
-
contents.extend(
|
106 |
else:
|
107 |
file = file_content
|
108 |
all_files.append(str(file).replace('ContentFile(path="','').replace('")',''))
|
|
|
98 |
branch=branch_name
|
99 |
)
|
100 |
all_files = []
|
101 |
+
contents = site.get_contents("static/icons/{license}/{category}/{author}/")
|
102 |
while contents:
|
103 |
file_content = contents.pop(0)
|
104 |
if file_content.type == "dir":
|
105 |
+
contents.extend(site.get_contents(file_content.path))
|
106 |
else:
|
107 |
file = file_content
|
108 |
all_files.append(str(file).replace('ContentFile(path="','').replace('")',''))
|