def __updateNotRecruitedTankmen(self, *args): if self.filter[ 'location'] == BARRACKS_CONSTANTS.LOCATION_FILTER_NOT_RECRUITED: self.__updateTankmen() recruit_helper.setNewRecruitsVisited() else: self.__updateRecruitNotification()
def __updateNotRecruitedTankmen(self, *args): self.__notRecruitedTankmen = [] for recruitInfo in recruit_helper.getAllRecruitsInfo( sortByExpireTime=True): self.__notRecruitedTankmen.append( _packNotRecruitedTankman(recruitInfo)) if self.filter[ 'location'] == BARRACKS_CONSTANTS.LOCATION_FILTER_NOT_RECRUITED: self.__updateTankmen() recruit_helper.setNewRecruitsVisited() else: self.__updateRecruitNotification()
def __setVisited(self, preferenceName): if preferenceName == RECRUIT_NOTIFICATIONS: recruit_helper.setNewRecruitsVisited()