ignore index inconsistencies
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@4171 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
f1eb9f392e
commit
a0be6208f5
2 changed files with 4 additions and 2 deletions
|
@ -80,7 +80,7 @@ The tracks of a tracking store may be reindexed:
|
|||
|
||||
>>> tracks.removeTrack(t4[0])
|
||||
>>> tracks.getUserTracks('a001', 0, 'u2')
|
||||
set([])
|
||||
[]
|
||||
|
||||
Runs
|
||||
----
|
||||
|
|
|
@ -285,7 +285,9 @@ class TrackingStorage(BTreeContainer):
|
|||
start, end = value
|
||||
result = self.intersect(result,
|
||||
self.indexes['timeStamp'].apply((start, end)))
|
||||
return result and (self[self.idFromNum(r)] for r in result) or set()
|
||||
result = result and (self.get(self.idFromNum(r)) for r in result) or set()
|
||||
#return result
|
||||
return [t for t in result if t is not None]
|
||||
|
||||
def intersect(self, r1, r2):
|
||||
return r1 is None and r2 or intersection(r1, r2)
|
||||
|
|
Loading…
Add table
Reference in a new issue