Update app.py
Browse files
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/
|
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);")
|