Spaces:
Runtime error
Runtime error
patrickbdevaney
commited on
Commit
•
55ea4e8
1
Parent(s):
511d90e
fixing datetime issue
Browse files
swarms/structs/spreadsheet_swarm.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import asyncio
|
2 |
import csv
|
3 |
-
from datetime import datetime
|
4 |
import os
|
5 |
import uuid
|
6 |
from typing import List, Union
|
@@ -16,7 +16,8 @@ from swarms.utils.loguru_logger import initialize_logger
|
|
16 |
|
17 |
logger = initialize_logger(log_folder="spreadsheet_swarm")
|
18 |
|
19 |
-
|
|
|
20 |
uuid_hex = uuid.uuid4().hex
|
21 |
|
22 |
# --------------- NEW CHANGE START ---------------
|
|
|
1 |
import asyncio
|
2 |
import csv
|
3 |
+
from datetime import datetime # Correct import statement
|
4 |
import os
|
5 |
import uuid
|
6 |
from typing import List, Union
|
|
|
16 |
|
17 |
logger = initialize_logger(log_folder="spreadsheet_swarm")
|
18 |
|
19 |
+
# Corrected line
|
20 |
+
time = datetime.now().isoformat() # Use datetime.now() instead of datetime.datetime.now()
|
21 |
uuid_hex = uuid.uuid4().hex
|
22 |
|
23 |
# --------------- NEW CHANGE START ---------------
|