Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
d52fd55
1
Parent(s):
ec17628
Fix timestamp creation in log_query_and_results function
Browse files
app.py
CHANGED
@@ -370,7 +370,7 @@ Return only the JSON object. All key names and string values must be in double q
|
|
370 |
def log_query_and_results(query_id: str, query: str, results: list[dict]):
|
371 |
"""Log the query and results to a file."""
|
372 |
log_entry = {
|
373 |
-
"timestamp": datetime.now().isoformat(),
|
374 |
"query_id": query_id,
|
375 |
"query": query,
|
376 |
"results": results,
|
|
|
370 |
def log_query_and_results(query_id: str, query: str, results: list[dict]):
|
371 |
"""Log the query and results to a file."""
|
372 |
log_entry = {
|
373 |
+
"timestamp": datetime.datetime.now().isoformat(),
|
374 |
"query_id": query_id,
|
375 |
"query": query,
|
376 |
"results": results,
|