2015-09-24 | Paul Boddie | raw files shortlog changelog graph | Fixed strict testing of request presence. | imipweb-client-simplification |
imip_store.py (file) |
1.1 --- a/imip_store.py Thu Sep 24 19:14:05 2015 +0200 1.2 +++ b/imip_store.py Thu Sep 24 19:37:37 2015 +0200 1.3 @@ -757,8 +757,13 @@ 1.4 """ 1.5 1.6 for request in requests: 1.7 - if request[:2] == (uid, recurrenceid): 1.8 + if request[:2] == (uid, recurrenceid) and ( 1.9 + not strict or 1.10 + not request[2:] and not type or 1.11 + request[2:] and request[2] == type): 1.12 + 1.13 return True 1.14 + 1.15 return False 1.16 1.17 def get_counters(self, user, uid, recurrenceid=None):