improve logging, dynamic url creation

This commit is contained in:
Ross
2023-04-24 12:00:37 +01:00
parent a8b6100018
commit fe6f398424
3 changed files with 129 additions and 92 deletions
+2 -2
View File
@@ -180,11 +180,11 @@ export function getQuestion(url, question_number, question_total) {
});
}
export function postSavedAnswer(type, qid, answer, e, db_object, db) {
export function postSavedAnswer(type, qid, answer, e, db_object, db, submit_url) {
console.debug("post", type, qid, answer, e)
return $.ajax({
type: "POST",
url: config.question_answer_submit_url,
url: submit_url,
data: JSON.stringify({
qid: `${type}/${qid}`,
answer: answer,