Skip to content

Commit 7dcb38e

Browse files
mzuennimpsijm
authored andcommitted
improve log message
1 parent 51a8ca2 commit 7dcb38e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

bin/problem.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,9 +1061,13 @@ def run_submissions(problem):
10611061
testcases, submissions = ts_pair
10621062
ok, verdict_table = Problem.run_some(testcases, submissions)
10631063

1064-
if len(testcases) * len(submissions) > 1:
1065-
if not config.args.verbose and not config.args.no_visualizer:
1066-
log("use -v with --visualize to see the paths to the generated images")
1064+
if (
1065+
len(testcases) * len(submissions) > 1
1066+
and not config.args.verbose
1067+
and not config.args.no_visualizer
1068+
and problem.visualizer(visualize.OutputVisualizer)
1069+
):
1070+
log("use -v with --visualize to see the paths to the generated images")
10671071

10681072
if config.args.table:
10691073
Problem._print_table(verdict_table.results, testcases)

0 commit comments

Comments
 (0)