fix: maximum bodů pro hodnocení
This commit is contained in:
		
							parent
							
								
									4f7b64fae2
								
							
						
					
					
						commit
						db16df391b
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		|  | @ -171,15 +171,15 @@ class Hodnoceni(bm.SeminarModelBase): | |||
| 
 | ||||
| 	@property | ||||
| 	def body_max(self): | ||||
| 		if not isinstance(self.problem, am.Uloha): | ||||
| 		if self.body_neprepocitane_max is None: | ||||
| 			return None | ||||
| 		return self.problem.uloha.max_body | ||||
| 		return self.vzorecek_na_prepocet(self.body_neprepocitane_max, self.reseni.resitele.count()) | ||||
| 
 | ||||
| 	@property | ||||
| 	def body_neprepocitane_max(self): | ||||
| 		if self.body_max is None: | ||||
| 		if not isinstance(self.problem, am.Uloha): | ||||
| 			return None | ||||
| 		return self.inverze_vzorecku_na_prepocet(self.body_max, self.reseni.resitele.count()) | ||||
| 		return self.problem.uloha.max_body | ||||
| 
 | ||||
| 	def __str__(self): | ||||
| 		return "{}, {}, {}".format(self.problem, self.reseni, self.body) | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue