Spaces:
Sleeping
Sleeping
=
commited on
Commit
·
30bb00b
1
Parent(s):
8bda43d
modifying again
Browse files
send_and_retrieve_data.ipynb
CHANGED
@@ -658,7 +658,7 @@
|
|
658 |
},
|
659 |
{
|
660 |
"cell_type": "code",
|
661 |
-
"execution_count":
|
662 |
"metadata": {},
|
663 |
"outputs": [
|
664 |
{
|
@@ -722,7 +722,7 @@
|
|
722 |
" # delete the document\n",
|
723 |
" self.db[collection].delete_one(\n",
|
724 |
" {\n",
|
725 |
-
" '_id': {'$eq':
|
726 |
" }\n",
|
727 |
" )\n",
|
728 |
" \n",
|
|
|
658 |
},
|
659 |
{
|
660 |
"cell_type": "code",
|
661 |
+
"execution_count": 4,
|
662 |
"metadata": {},
|
663 |
"outputs": [
|
664 |
{
|
|
|
722 |
" # delete the document\n",
|
723 |
" self.db[collection].delete_one(\n",
|
724 |
" {\n",
|
725 |
+
" '_id': {'$eq': upd_sent['_id']}\n",
|
726 |
" }\n",
|
727 |
" )\n",
|
728 |
" \n",
|
wolof_translate/utils/database_manager.py
CHANGED
@@ -49,7 +49,7 @@ class TranslationMongoDBManager:
|
|
49 |
# delete the document
|
50 |
self.db[collection].delete_one(
|
51 |
{
|
52 |
-
'_id': {'$eq':
|
53 |
}
|
54 |
)
|
55 |
|
|
|
49 |
# delete the document
|
50 |
self.db[collection].delete_one(
|
51 |
{
|
52 |
+
'_id': {'$eq': upd_sent['_id']}
|
53 |
}
|
54 |
)
|
55 |
|