IDSIA/sacred

MD5 hash for gridfs is deprecated

Kwentar opened this issue · 0 comments

_id = self.fs.put(f, filename=abs_path)

Looks like md5 hash doesn't work as earlier in gridfs, and all files will be added without checking md5 (file in file = self.fs.find_one({"filename": abs_path, "md5": md5}) always None), I fixed it like _id = self.fs.put(f, filename=abs_path, md5=md5) but not sure this is the correct one