bugfix assignment grade for first assignment in stream
diff --git a/dev.js b/dev.js
index 1cb6e76..39f9362 100644
--- a/dev.js
+++ b/dev.js
@@ -402,7 +402,7 @@
} else {
if (jQuery(data[i]).find("a").attr("href")) {
var id = dtps.classes[num].streamitems.indexOf(jQuery(data[i]).find("a").attr("href").split("/")[5])
- if (id && (id != -1)) {
+ if (id != -1) {
dtps.classes[num].stream[id].grade = jQuery(data[i]).children("td:nth-child(4)").text().replace(/\s/g, "");
dtps.classes[num].stream[id].letter = jQuery(data[i]).children("td:nth-child(6)").text().replace(/\s/g, "");
if (prevWeight !== -1) dtps.classes[num].stream[id].weight = dtps.classes[num].weights[prevWeight].weight;