From 4fa16fc3e5e63a21f2ecb74317da3fc4cdaa8700 Mon Sep 17 00:00:00 2001 From: Ales Teska Date: Thu, 9 Jan 2025 23:05:53 +0700 Subject: [PATCH] Flake8 --- asab/storage/mongodb.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/asab/storage/mongodb.py b/asab/storage/mongodb.py index 90e09e14..fc37a1e2 100644 --- a/asab/storage/mongodb.py +++ b/asab/storage/mongodb.py @@ -196,10 +196,10 @@ async def execute(self, custom_data: typing.Optional[dict] = None, event_type: t if ret.get('_v') == 1 and '_c' not in ret: # If the object is new (version is 1), set the creation datetime await coll.update_one( - { id_name: ret[id_name] }, - { '$set': { '_c': ret['_m'] } } + {id_name: ret[id_name]}, + {'$set': {'_c': ret['_m']}} ) - + self.ObjId = ret[id_name] if self.Storage.WebhookURIs is not None: