alexf4 / PrepIt

0 stars 0 forks source link

update new question admin page to build in more fields #69

Closed alexf4 closed 8 years ago

alexf4 commented 8 years ago

Right now new questions look like:

{ "__v" : 0, "category" : "Constitutional Underpinnings", "subcategory" : "Separation of powers", "questionText" : "Federal judges are chosen by the President and confirmed by the Senate. They serve for a term of...", "solution" : "d", "correct" : false, "_id" : { "$oid" : "567eb7704ce779140022906f" }, "answers" : { "d" : "life", "c" : "10 years", "b" : "7 years", "a" : "5 years" } }

They need to look like: { "baseQuestionID" : "55db25a97f8808160093bdf6", "correctAttempts" : 0, "incorrectAttempts" : 0, "numberOfAttempts" : 0, "__v" : 0, "category" : "Constitutional Underpinnings", "subcategory" : "Separation of powers", "questionText" : "The Constitutional power that states that all revenue bills must start in the House of Representatives is known as the...", "solution" : "c", "correct" : false, "_id" : { "$oid" : "565edfb7a9bc641400767e07" }, "responses" : { "d" : 0, "c" : 0, "b" : 0, "a" : 0 }, "answers" : { "d" : "monetary power", "c" : "power of the purse", "b" : "fiscal power", "a" : "power of taxation" } }