simonduerr commited on
Commit
256d47b
·
1 Parent(s): 8d03ab9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -105,10 +105,10 @@ def process_and_create_pull(icon_files,category, new_cateogry_check, new_categor
105
  #get file content from filesystem
106
  with open(file.name, 'r') as fp:
107
  file_content = fp.read()
108
-
109
  site.create_file(
110
- path=f'static/icons/{license}/{category}/{author}/{os.path.basename(file.name)}',
111
- message=f'create {os.path.basename(file.name)}',
112
  content=file_content,
113
  branch=branch_name
114
  )
 
105
  #get file content from filesystem
106
  with open(file.name, 'r') as fp:
107
  file_content = fp.read()
108
+ filename = os.path.basename(file.name).replace(" ", "_")
109
  site.create_file(
110
+ path=f'static/icons/{license}/{category}/{author}/{filename}',
111
+ message=f'create {filename}',
112
  content=file_content,
113
  branch=branch_name
114
  )