simonduerr commited on
Commit
958b4cd
·
1 Parent(s): d8c2a46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = repo.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(repo.get_contents(file_content.path))
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('")',''))