Spaces:
Sleeping
Sleeping
Commit
·
db59798
1
Parent(s):
bc488e8
Add application file
Browse files- .DS_Store +0 -0
- data/.DS_Store +0 -0
- pages/4_💹️_铭文数据分析.py +5 -1
.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_💹️_铭文数据分析.py
CHANGED
|
@@ -194,9 +194,13 @@ for item in new_100_results_temp:
|
|
| 194 |
utc_dt = datetime.strptime(item[0], "%Y-%m-%d %H:%M:%S%z")
|
| 195 |
utc_dt = utc_dt.replace(tzinfo=pytz.UTC)
|
| 196 |
utc_plus_8_dt = utc_dt.astimezone(pytz.timezone("Asia/Shanghai"))
|
| 197 |
-
new_100_results.append({
|
|
|
|
|
|
|
|
|
|
| 198 |
result_df = pd.DataFrame(new_100_results)
|
| 199 |
st.dataframe(result_df, use_container_width=True, hide_index=True)
|
|
|
|
| 200 |
ethscriptions_cur.execute("SELECT block_number FROM process_blocks")
|
| 201 |
index_result = ethscriptions_cur.fetchone()
|
| 202 |
index_processed_block = index_result[0]
|
|
|
|
| 194 |
utc_dt = datetime.strptime(item[0], "%Y-%m-%d %H:%M:%S%z")
|
| 195 |
utc_dt = utc_dt.replace(tzinfo=pytz.UTC)
|
| 196 |
utc_plus_8_dt = utc_dt.astimezone(pytz.timezone("Asia/Shanghai"))
|
| 197 |
+
new_100_results.append({
|
| 198 |
+
'时间 UTC +8': utc_plus_8_dt.strftime("%Y-%m-%d %H:%M:%S (UTC +8)")[:-8],
|
| 199 |
+
'铭文 data:,': bytes.fromhex(item[1][2:]).decode('utf-8', 'replace')[6:]
|
| 200 |
+
})
|
| 201 |
result_df = pd.DataFrame(new_100_results)
|
| 202 |
st.dataframe(result_df, use_container_width=True, hide_index=True)
|
| 203 |
+
|
| 204 |
ethscriptions_cur.execute("SELECT block_number FROM process_blocks")
|
| 205 |
index_result = ethscriptions_cur.fetchone()
|
| 206 |
index_processed_block = index_result[0]
|