Commits

Matt Chaput  committed 43c793c Merge
  • Participants
  • Parent commits 642b325, e3977f3

Comments (0)

Files changed (2)

File src/whoosh/filedb/gae.py

         return len(DatastoreFile.get_by_key_name(name).value)
 
     def delete_file(self, name):
+        memcache.delete(name, namespace="DatastoreFile")
         return DatastoreFile.get_by_key_name(name).delete()
 
     def rename_file(self, name, newname, safe=False):

File src/whoosh/matching.py

         self._i += 1
         while self._i < len(self._ids) and self.quality() <= minquality:
             self._i += 1
+        return 0
     
     def id(self):
         return self._ids[self._i]
         
         # Short circuit if one matcher is inactive
         if not a.is_active():
-            sk = b.skip_to_quality(minquality)
-            return sk
+            return b.skip_to_quality(minquality)
         elif not b.is_active():
             return a.skip_to_quality(minquality)