|
@@ -394,13 +394,6 @@ class MongodbHandler:
|
|
|
if isinstance(update_value, pd.DataFrame):
|
|
|
update_value = simplejson.loads(update_value.to_json(orient="records",
|
|
|
date_format="iso"))
|
|
|
-
|
|
|
-
|
|
|
- print('-$-'*40)
|
|
|
- print(('Data for label: {}').format(update_label))
|
|
|
- print('Size of document:', sys.getsizeof(update_value), 'bytes')
|
|
|
- print('-$-'*40)
|
|
|
-
|
|
|
try:
|
|
|
if query_label and query_value:
|
|
|
self._database[collection_name].update_one({query_label:query_value}, {"$set": {update_label: update_value}}, upsert=create_if_not_exist)
|