changeset 145:d2c266c8d820

Output-only problems no longer print times
author Oleg Oshmyan <chortos@inbox.lv>
date Fri, 27 May 2011 22:39:46 +0100
parents 25b929aa92a1
children d5b6708c1955
files problem.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/problem.py	Fri May 27 02:27:07 2011 +0100
+++ b/problem.py	Fri May 27 22:39:46 2011 +0100
@@ -132,7 +132,10 @@
 				say('%*s: ' % (prob.cache.padoutput, id), end='')
 				sys.stdout.flush()
 				try:
-					granted = case(lambda: (say('%7.3f%s s, ' % (case.time_stopped - case.time_started, case.time_limit_string), end=''), sys.stdout.flush()))
+					if prob.config.kind != 'outonly':
+						granted = case(lambda: (say('%7.3f%s s, ' % (case.time_stopped - case.time_started, case.time_limit_string), end=''), sys.stdout.flush()))
+					else:
+						granted = case(lambda: None)
 				except testcases.TestCaseSkipped:
 					verdict = 'skipped due to skimming mode'
 				except testcases.CanceledByUser: