self.career = "" | self.career = "" | ||||
elif isinstance(career, str): | elif isinstance(career, str): | ||||
self.career = career | self.career = career | ||||
elif isinstance(career, int) and (career in range(13) or career in range(123,128)): | |||||
elif isinstance(career, int) and (career in range(13) or career in range(119,128)): | |||||
self.career = [x for x in Character.CAREERS if x["id"] == career][0] | self.career = [x for x in Character.CAREERS if x["id"] == career][0] | ||||
else: | else: | ||||
self.career = "" | self.career = "" |