Update app.py
Browse files
app.py
CHANGED
|
@@ -46,6 +46,12 @@ def get_current_time():
|
|
| 46 |
"""Get current timestamp in ISO format"""
|
| 47 |
return datetime.now().isoformat()
|
| 48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
def _append_jsonl_in_repo(new_row: dict) -> None:
|
| 50 |
"""Appends a JSON line to metadata/entries.jsonl in the dataset repo."""
|
| 51 |
if not api: return
|
|
|
|
| 46 |
"""Get current timestamp in ISO format"""
|
| 47 |
return datetime.now().isoformat()
|
| 48 |
|
| 49 |
+
def handle_time_capture():
|
| 50 |
+
"""Handle time capture and return status message and timestamp."""
|
| 51 |
+
timestamp = get_current_time()
|
| 52 |
+
status_msg = f"🕐 **Time Captured**: {timestamp}"
|
| 53 |
+
return status_msg, timestamp
|
| 54 |
+
|
| 55 |
def _append_jsonl_in_repo(new_row: dict) -> None:
|
| 56 |
"""Appends a JSON line to metadata/entries.jsonl in the dataset repo."""
|
| 57 |
if not api: return
|