Lepší řazení problémů ve výsledkovce
This commit is contained in:
		
							parent
							
								
									df657953ab
								
							
						
					
					
						commit
						0c90c2bd06
					
				
					 1 changed files with 1 additions and 7 deletions
				
			
		|  | @ -371,13 +371,7 @@ class VysledkovkaCisla(Vysledkovka): | |||
| 				podproblemy[-1].append(problem) | ||||
| 
 | ||||
| 		for podproblem in podproblemy.keys(): | ||||
| 			def int_or_zero(p): | ||||
| 				try: | ||||
| 					return int(p.kod) | ||||
| 				except ValueError: | ||||
| 					return 0 | ||||
| 
 | ||||
| 			podproblemy[podproblem] = sorted(podproblemy[podproblem], key=int_or_zero) | ||||
| 			podproblemy[podproblem] = sorted(podproblemy[podproblem], key=lambda p: p.kod_v_rocniku) | ||||
| 		return podproblemy | ||||
| 
 | ||||
| 	@cached_property | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue