soiz commited on
Commit
edc7b7f
·
verified ·
1 Parent(s): c7de5f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -12,7 +12,7 @@ def clone_repo():
12
  shutil.rmtree(temp_dir)
13
 
14
  print("Cloning the repository...")
15
- result = os.system(f"git clone https://github.com/ozh/cookieclicker.git {temp_dir}")
16
 
17
  if result != 0:
18
  print("Error: Failed to clone the repository.")
@@ -53,8 +53,6 @@ def modify_index_html():
53
  if section_right:
54
  # id="store"を除くすべての子要素を空にする
55
  for element in section_right.find_all(True): # Trueはすべてのタグを対象
56
- if element.get('id') != 'store':
57
- element.clear() # 要素の内容を空にする
58
 
59
  # 新しい要素を作成して追加する
60
  new_link = soup.new_tag('a', href="javascript:var s=document.createElement('script');s.type='text/javascript';s.src='https://huggingface.co/spaces/soiz/cookie/raw/main/cl.js';document.body.appendChild(s);void(0);")
 
12
  shutil.rmtree(temp_dir)
13
 
14
  print("Cloning the repository...")
15
+ result = os.system(f"git clone https://github.com/izum00/cookieclicker.git {temp_dir}")
16
 
17
  if result != 0:
18
  print("Error: Failed to clone the repository.")
 
53
  if section_right:
54
  # id="store"を除くすべての子要素を空にする
55
  for element in section_right.find_all(True): # Trueはすべてのタグを対象
 
 
56
 
57
  # 新しい要素を作成して追加する
58
  new_link = soup.new_tag('a', href="javascript:var s=document.createElement('script');s.type='text/javascript';s.src='https://huggingface.co/spaces/soiz/cookie/raw/main/cl.js';document.body.appendChild(s);void(0);")