From cb8abf32653d31a0da888a9fea2c72a6bf13a163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20Harnes?= Date: Wed, 31 May 2023 17:59:13 +0200 Subject: [PATCH] fix(mongodb): change update entry filter --- mongodb/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongodb/utils.py b/mongodb/utils.py index c0133f7..1367bce 100644 --- a/mongodb/utils.py +++ b/mongodb/utils.py @@ -59,7 +59,7 @@ def update_document(data): result = None for collection_name in ['unobfuscated', 'llvm', 'tigress', 'wasm-mutate']: collection = db[collection_name] - filter_ = {"_id": data["_id"]} + filter_ = {"file": data["file"]} update_ = {"$set": data} result = collection.update_one(filter_, update_) return result