Update src/Database/operations.py
Browse files
src/Database/operations.py
CHANGED
|
@@ -6,6 +6,8 @@ from typing import Any, Dict, List, Optional
|
|
| 6 |
from pymongo import DESCENDING
|
| 7 |
from Database.connections import get_img_gen_collection
|
| 8 |
|
|
|
|
|
|
|
| 9 |
|
| 10 |
def insert_img_gen_run_result(
|
| 11 |
*,
|
|
@@ -40,7 +42,7 @@ def insert_img_gen_run_result(
|
|
| 40 |
"created_by": created_by,
|
| 41 |
"created_at": datetime.utcnow(),
|
| 42 |
}
|
| 43 |
-
|
| 44 |
res = col.insert_one(doc)
|
| 45 |
return str(res.inserted_id)
|
| 46 |
|
|
|
|
| 6 |
from pymongo import DESCENDING
|
| 7 |
from Database.connections import get_img_gen_collection
|
| 8 |
|
| 9 |
+
from core.logger import logger
|
| 10 |
+
|
| 11 |
|
| 12 |
def insert_img_gen_run_result(
|
| 13 |
*,
|
|
|
|
| 42 |
"created_by": created_by,
|
| 43 |
"created_at": datetime.utcnow(),
|
| 44 |
}
|
| 45 |
+
logger.info(doc)
|
| 46 |
res = col.insert_one(doc)
|
| 47 |
return str(res.inserted_id)
|
| 48 |
|