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

Add IDs to questions and not options

parent 3a6b4bf3
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,7 @@ while (<>) {
my %ent =
(
"id" => md5_base64($ARGV . $question),
"question" => md($question),
"options" => [@options],
"multiple" => ($single_choice eq "0" ? \0 : \1)
......@@ -89,7 +90,6 @@ while (<>) {
add();
%last_option =
(
"id" => md5_base64($ARGV . $2),
"option" => md($2),
"correct" => $1 eq "+" ? JSON::true : $1 eq "-" ? JSON::false : JSON::null
);
......
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