diff options
author | Daniel Drake <dsd@laptop.org> | 2010-06-25 22:02:22 (GMT) |
---|---|---|
committer | Daniel Drake <dsd@laptop.org> | 2010-06-25 22:02:22 (GMT) |
commit | 98fd799e05f532802c4307b99ea4f30dbfe2fc72 (patch) | |
tree | 567f04598c01bca41b3a8f3f525da2f72d9611b0 /model.py | |
parent | 014c429d71f57c7371e826691939c58ab1798847 (diff) |
Record photo UUID as string
Photos were not being shared properly (the download never succeeded)
because the servers MD5 checking always failed ("I don't have this photo").
This is because the UUIDs were always being saved as UUID objects, and
comparing them later with a string (in getRecdByMd5) was always failing.
Save UUIDs as a string to solve this issue and others that surround it.
Diffstat (limited to 'model.py')
-rw-r--r-- | model.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -388,7 +388,7 @@ class Model: def createNewRecordedMd5Sums( self, recd ): - recd.thumbMd5 = recd.mediaMd5 = uuid.uuid4() + recd.thumbMd5 = recd.mediaMd5 = str(uuid.uuid4()) #load the thumbfile thumbFile = os.path.join(Instance.instancePath, recd.thumbFilename) |