Spaces:
Runtime error
Runtime error
fix issue with datetime
Browse files
app.py
CHANGED
@@ -177,7 +177,7 @@ def get_last_refresh_time(path) -> str:
|
|
177 |
latest_time = max([os.path.getmtime(f) for f in csv_files])
|
178 |
|
179 |
# Convert to human-readable format
|
180 |
-
return datetime.fromtimestamp(latest_time).strftime('%Y-%m-%d %H:%M:%S')
|
181 |
|
182 |
|
183 |
with block:
|
|
|
177 |
latest_time = max([os.path.getmtime(f) for f in csv_files])
|
178 |
|
179 |
# Convert to human-readable format
|
180 |
+
return datetime.datetime.fromtimestamp(latest_time).strftime('%Y-%m-%d %H:%M:%S')
|
181 |
|
182 |
|
183 |
with block:
|