Skip to content

Commit

Permalink
Fix a message of generate-input command with --hack option
Browse files Browse the repository at this point in the history
  • Loading branch information
kmyk authored Dec 24, 2020
1 parent 5ec8a2d commit b40e485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onlinejudge_command/subcommand/generate_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def try_hack_once(generator: str, command: str, hack: str, *, tle: Optional[floa
assert input_data is not None

# check the randomness of generator
name = '{}-th attempt'
name = '{}-th attempt'.format(attempt)
conflicted_name = check_randomness_of_generator(input_data, name=name, lock=lock, generated_input_hashes=generated_input_hashes)
if conflicted_name is not None:
submit(logger.warning, 'The same input is already generated at %s. Please use a random input generator.', conflicted_name)
Expand Down

0 comments on commit b40e485

Please sign in to comment.