Spaces:
Sleeping
Sleeping
Commit
·
a82bc79
1
Parent(s):
ba497ab
Add application file
Browse files- .DS_Store +0 -0
- data/.DS_Store +0 -0
- pages/4_🕵️♀️_Ethscriptions Data.py +2 -2
.DS_Store
CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
|
|
data/.DS_Store
CHANGED
Binary files a/data/.DS_Store and b/data/.DS_Store differ
|
|
pages/4_🕵️♀️_Ethscriptions Data.py
CHANGED
@@ -182,7 +182,7 @@ latest_block_number = w3.eth.block_number
|
|
182 |
st.markdown(
|
183 |
f'EthPen Ethscriptions Index Status:当前 Ethereum 最高区块:{latest_block_number},已处理区块:{processed_block}')
|
184 |
|
185 |
-
download = st.checkbox(
|
186 |
if download:
|
187 |
current_dir = os.path.dirname(__file__)
|
188 |
parent_dir = os.path.dirname(current_dir)
|
@@ -203,7 +203,7 @@ if state_value == "0":
|
|
203 |
new_state = "1"
|
204 |
ethscriptions_cur.execute("UPDATE thread_start_state SET state = ?", (new_state,))
|
205 |
ethscriptions_con.commit()
|
206 |
-
|
207 |
eths_thread = threading.Thread(target=get_eths_data)
|
208 |
ethscriptions_thread = threading.Thread(target=get_ethscriptions_data)
|
209 |
|
|
|
182 |
st.markdown(
|
183 |
f'EthPen Ethscriptions Index Status:当前 Ethereum 最高区块:{latest_block_number},已处理区块:{processed_block}')
|
184 |
|
185 |
+
download = st.checkbox(" ", value=False)
|
186 |
if download:
|
187 |
current_dir = os.path.dirname(__file__)
|
188 |
parent_dir = os.path.dirname(current_dir)
|
|
|
203 |
new_state = "1"
|
204 |
ethscriptions_cur.execute("UPDATE thread_start_state SET state = ?", (new_state,))
|
205 |
ethscriptions_con.commit()
|
206 |
+
ethscriptions_con.close()
|
207 |
eths_thread = threading.Thread(target=get_eths_data)
|
208 |
ethscriptions_thread = threading.Thread(target=get_ethscriptions_data)
|
209 |
|