##// END OF EJS Templates
avoid comparison error in dictdb hub history...
MinRK -
Show More
@@ -265,7 +265,11 b' class DictDB(BaseDB):'
265
265
266 def get_history(self):
266 def get_history(self):
267 """get all msg_ids, ordered by time submitted."""
267 """get all msg_ids, ordered by time submitted."""
268 msg_ids = self._records.keys()
268 msg_ids = self._records.keys():
269 # Remove any that do not have a submitted timestamp.
270 # This is extremely unlikely to happen,
271 # but it seems to come up in some tests on VMs.
272 msg_ids = [ m for m in msg_ids if self._records[m]['submitted'] is not None ]
269 return sorted(msg_ids, key=lambda m: self._records[m]['submitted'])
273 return sorted(msg_ids, key=lambda m: self._records[m]['submitted'])
270
274
271
275
General Comments 0
You need to be logged in to leave comments. Login now