From 101cd109dab003392393d62f7be683c340965598 Mon Sep 17 00:00:00 2001 From: Mike Dirolf Date: Wed, 16 Jun 2010 14:39:13 -0400 Subject: [PATCH] continue to use subtype 2 for GridFS, since filemd5 was only updated to handle other subtypes in 1.5.x --- gridfs/grid_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gridfs/grid_file.py b/gridfs/grid_file.py index ffcd71ec3..b8b154377 100644 --- a/gridfs/grid_file.py +++ b/gridfs/grid_file.py @@ -174,7 +174,7 @@ class GridIn(object): chunk = {"files_id": self._file["_id"], "n": self._chunk_number, - "data": Binary(data)} + "data": Binary(data, 2)} self._chunks.insert(chunk) self._chunk_number += 1