Dělá to něco špatně, ale tyhle printy nepomůžou
This commit is contained in:
		
							parent
							
								
									54e728d2be
								
							
						
					
					
						commit
						50103535d3
					
				
					 1 changed files with 0 additions and 3 deletions
				
			
		|  | @ -42,7 +42,6 @@ def uloha_to_Uloha(apps,schema_editor): | ||||||
| 
 | 
 | ||||||
| 	ulohy = Problem.objects.filter(typ = 'uloha') | 	ulohy = Problem.objects.filter(typ = 'uloha') | ||||||
| 	for uold in ulohy: | 	for uold in ulohy: | ||||||
| 		print('u') |  | ||||||
| 		unew = Uloha.objects.create( | 		unew = Uloha.objects.create( | ||||||
| 			problem_ptr = uold, | 			problem_ptr = uold, | ||||||
| 			# Zakomentované fieldy by se už měly nacházet v příslušném problému | 			# Zakomentované fieldy by se už měly nacházet v příslušném problému | ||||||
|  | @ -84,7 +83,6 @@ def clanek_to_Clanek(apps,schema_editor): | ||||||
| 
 | 
 | ||||||
| 	clanky = Problem.objects.filter(Q(typ='org-clanek') | Q(typ='res-clanek')) | 	clanky = Problem.objects.filter(Q(typ='org-clanek') | Q(typ='res-clanek')) | ||||||
| 	for cl in clanky: | 	for cl in clanky: | ||||||
| 		print('c') |  | ||||||
| 		# Vybereme vhodné číslo pro článek z čísla zadání a čísla řešení: | 		# Vybereme vhodné číslo pro článek z čísla zadání a čísla řešení: | ||||||
| 		if cl.cislo_zadani_old is None: | 		if cl.cislo_zadani_old is None: | ||||||
| 			cislo = cl.cislo_reseni_old | 			cislo = cl.cislo_reseni_old | ||||||
|  | @ -123,7 +121,6 @@ def tema_to_Tema(apps, schema_editor): | ||||||
| 	 | 	 | ||||||
| 	temata = Problem.objects.filter(Q(typ = 'tema') | Q(typ='serial')) | 	temata = Problem.objects.filter(Q(typ = 'tema') | Q(typ='serial')) | ||||||
| 	for t in temata: | 	for t in temata: | ||||||
| 		print('t') |  | ||||||
| 		# Vymyslíme správně ročník: | 		# Vymyslíme správně ročník: | ||||||
| 		if t.cislo_zadani_old is None and t.cislo_reseni_old is None: | 		if t.cislo_zadani_old is None and t.cislo_reseni_old is None: | ||||||
| 			rocnik = None | 			rocnik = None | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Pavel "LEdoian" Turinsky
						Pavel "LEdoian" Turinsky