mirror of
https://github.com/vale981/vertiefungs_scraper
synced 2025-03-04 17:21:38 -05:00
show tutorials and lectures by default
This commit is contained in:
parent
c5404bc283
commit
6bee977df3
1 changed files with 5 additions and 3 deletions
8
main.js
8
main.js
|
@ -38,6 +38,11 @@ async function renderTable() {
|
|||
checked_subj.add(subj.value);
|
||||
|
||||
types = $('#type').val();
|
||||
if(types.length === 0)
|
||||
types = ['tut', 'lect'];
|
||||
|
||||
console.log( types.lenght );
|
||||
|
||||
week = $('#week').val();
|
||||
|
||||
allsub = [];
|
||||
|
@ -63,11 +68,8 @@ async function renderTable() {
|
|||
last_day = 0;
|
||||
weekday_subs = Array.from({length: 5}, (x, i) => []);
|
||||
for(let sub of subs[time].docs) {
|
||||
console.log( sub, sub.day );
|
||||
|
||||
weekday_subs[sub.day].push(sub);
|
||||
}
|
||||
console.log(weekday_subs);
|
||||
|
||||
for (let day of weekday_subs) {
|
||||
content += `<td class="${day.length > 1 ? "red" : ""}">`;
|
||||
|
|
Loading…
Add table
Reference in a new issue