# HG changeset patch # User Atul Varma # Date 1262303799 28800 # Node ID b6259e7135331f468ae3597ed06b0aadd806b627 # Parent 9d6306907982221db6b0224cf30a0186124ab781 fixed another bug diff -r 9d6306907982 -r b6259e713533 test.py --- a/test.py Thu Dec 31 15:43:25 2009 -0800 +++ b/test.py Thu Dec 31 15:56:39 2009 -0800 @@ -11,7 +11,7 @@ self._people = people def get_max_person_id(self, app): - return len(self._people) + return {'person_id': len(self._people)} def _validate_index(self, index): if index <= 0 or index > self.get_max_person_id(None): diff -r 9d6306907982 -r b6259e713533 whoisi_cache.py --- a/whoisi_cache.py Thu Dec 31 15:43:25 2009 -0800 +++ b/whoisi_cache.py Thu Dec 31 15:56:39 2009 -0800 @@ -59,7 +59,7 @@ self.people[person_id] = result['person'] def update(self): - pid = self.server.get_max_person_id(app=self.APP_NAME) + pid = self.server.get_max_person_id(app=self.APP_NAME)['person_id'] interval = range(len(self.people) + 1, pid + 1) subintervals = split_seq(interval, self.batch_size) for subinterval in subintervals: