Skip to content
Snippets Groups Projects
Verified Commit 068a55ea authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

Fix 3.0.3 incompatibility issue

This operation exists on latest testing version but not the one on
stable.
parent 59d218cb
No related branches found
No related tags found
No related merge requests found
......@@ -74,10 +74,11 @@ class Storage(SWHConfig):
_id = content.pop('_id')
r = self.db['content'].update_one(
filter={'sha1': content['sha1']},
filter={
'sha1': content['sha1']
},
update={
"$set": content,
"$currentDate": {"lastModified": True},
},
upsert=True) # if not existing, this will create it
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment