Merge branch 'test' into develop
This commit is contained in:
		
						commit
						5378a677db
					
				
					 2 changed files with 8 additions and 2 deletions
				
			
		|  | @ -183,7 +183,7 @@ | |||
| 			</span> | ||||
| 		</div> | ||||
| 		<div class='corr-body' id='op{{o.id}}-body'> | ||||
| 		<div id='op{{o.id}}-text'>{{o.text}}</div> | ||||
| 		<div id='op{{o.id}}-text'>{{o.text|linebreaks}}</div> | ||||
| 
 | ||||
| 		{% for k in o.komentare %} | ||||
|     	<hr> | ||||
|  | @ -221,7 +221,7 @@ | |||
|                     {% endif %} | ||||
| 				</div> | ||||
| 			</div> | ||||
| 			<div id='kt{{k.id}}'>{{k.text}}</div> | ||||
| 			<div id='kt{{k.id}}'>{{k.text|linebreaks}}</div> | ||||
| 		</div> | ||||
| 		{% endfor %}  | ||||
| 		</div> | ||||
|  |  | |||
|  | @ -223,6 +223,12 @@ def pricti_body(slovnik, resitel, body): | |||
| 	# daného řešitele, předěláme na 0 | ||||
| 	# (v dalším kroku přičteme reálný počet bodů), | ||||
| 	# rozlišujeme tím mezi 0 a neodevzdaným řešením | ||||
| 
 | ||||
| 	# Speciálně pokud jsou body None (hodnocení není obodované), vraťse | ||||
| 	# TODO nejde to udělat lépe? | ||||
| 	if body is None: | ||||
| 		return | ||||
| 
 | ||||
| 	if slovnik[resitel.id] == "": | ||||
| 		slovnik[resitel.id] = 0 | ||||
| 	 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue