Skip to content
Snippets Groups Projects

Resolve "Distribution of requests per assignment over a lab"

@@ -74,12 +74,17 @@
const qSessionId = /*[[@{qSession.id}]]*/ -1;
const genericFilterForm = $("#generic-filter-form");
$.ajax({
type: "GET",
data: genericFilterForm ? genericFilterForm.serialize() : "",
url: /*[[@{/lab/{id}/status/assistant/freq(id = ${qSession.id})}]]*/ `/lab/${qSessionId}`,
success: updateAssistantFrequencyTable($("#assistant-frequency-table")),
});
const baseAssistantFreqUrl = /*[[@{/lab/{id}/status/assistant/freq(id = ${qSession.id})}]]*/ `/lab/${qSessionId}`;
fetch(baseAssistantFreqUrl + new URLSearchParams(genericFilterForm ? genericFilterForm.serialize() : ""))
.then(response => response.json())
.then(updateAssistantFrequencyTable($("#assistant-frequency-table")));
// $.ajax({
// type: "GET",
// data: genericFilterForm ? genericFilterForm.serialize() : "",
// url: /*[[@{/lab/{id}/status/assistant/freq(id = ${qSession.id})}]]*/ `/lab/${qSessionId}`,
// success: updateAssistantFrequencyTable($("#assistant-frequency-table")),
// });
}
</script>
</section>
Loading