aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/matchbox/db/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/matchbox/db/__init__.py b/src/matchbox/db/__init__.py
index 0a4eeab..be52239 100644
--- a/src/matchbox/db/__init__.py
+++ b/src/matchbox/db/__init__.py
@@ -290,11 +290,11 @@ class DjangoDB(object):
if len(filetype) == 0:
raise DatabaseError ("Database not initialized from fixtures!!\nFile type loading failed (for type %s)" % type)
filetype = filetype[0]
- hash = None
- size = None
+ hash = ""
+ size = 0
if type == 'obj':
- hash = contents[path][1]
- size = contents[path][2]
+ size = contents[path][1]
+ hash = contents[path][2]
ppf = PackageProperties_File(file=file,
filetype=filetype,