Spaces:
Runtime error
Runtime error
Fix timestamp
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import re
|
|
| 4 |
|
| 5 |
def extract_timestamp(filename):
|
| 6 |
# 从文件名中提取数字时间戳
|
| 7 |
-
match = re.search(r'(\d+)', filename)
|
| 8 |
if match:
|
| 9 |
return int(match.group(1))
|
| 10 |
return 0
|
|
|
|
| 4 |
|
| 5 |
def extract_timestamp(filename):
|
| 6 |
# 从文件名中提取数字时间戳
|
| 7 |
+
match = re.search(r'_(\d+)_\d+\.csv', filename)
|
| 8 |
if match:
|
| 9 |
return int(match.group(1))
|
| 10 |
return 0
|