def merge(self, new_timestamp): try: existing = self[new_timestamp.msg] except KeyError: existing = Timestamp(new_timestamp.msg) existing.merge(new_timestamp) self.__save(existing)
def merge(self, new_timestamp): try: existing = self[new_timestamp.msg] except KeyError: existing = Timestamp(new_timestamp.msg) existing.merge(new_timestamp) self.__save(existing)