Skip to content
Snippets Groups Projects
Commit 2057d3ff authored by Philip Kaluđerčić's avatar Philip Kaluđerčić :u7121:
Browse files

Allow multiple-choice questions to have to right answers

parent 637ec87a
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@ while (<>) {
$any = 1 if (not (defined $opt->{"correct"})) or ($opt->{"correct"} eq JSON::true);
}
die "no correct option at \"$question\" ($ARGV)\n"
unless $any;
if not($any) and $single_choice;
my %ent =
(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment