Skip to content

Commit

Permalink
feat: update shifts (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruilopesm authored Sep 5, 2023
1 parent 36fbbec commit 26eee22
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 78 deletions.
2 changes: 1 addition & 1 deletion data/filters.json
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@
"name": "LI4",
"groupId": 3,
"semester": 1,
"shifts": []
"shifts": ["OT4", "OT5"]
},
{
"id": 316,
Expand Down
112 changes: 74 additions & 38 deletions data/shifts.json
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@
"theoretical": false,
"shift": "TP1",
"building": "CP1",
"room": "1.16",
"room": "1.40",
"day": 4,
"start": "11:00",
"end": "13:00",
Expand Down Expand Up @@ -1311,33 +1311,21 @@
"id": 14313,
"title": "Comunicações por Computador",
"theoretical": false,
"shift": "PL7",
"building": "CP1",
"room": "1.22",
"day": 0,
"start": "09:00",
"end": "11:00",
"filterId": 312
},
{
"id": 14309,
"title": "Cálculo de Programas",
"theoretical": false,
"shift": "TP4",
"shift": "PL5",
"building": "CP2",
"room": "1.12",
"room": "2.09",
"day": 0,
"start": "09:00",
"end": "11:00",
"filterId": 311
"filterId": 312
},
{
"id": 14313,
"title": "Comunicações por Computador",
"theoretical": false,
"shift": "PL5",
"building": "CP2",
"room": "2.09",
"shift": "PL7",
"building": "CP1",
"room": "1.22",
"day": 0,
"start": "09:00",
"end": "11:00",
Expand Down Expand Up @@ -1607,18 +1595,6 @@
"end": "13:00",
"filterId": 316
},
{
"id": 14310,
"title": "Desenvolvimento de Sistemas de Software",
"theoretical": false,
"shift": "PL6",
"building": "CP2",
"room": "2.08",
"day": 3,
"start": "11:00",
"end": "13:00",
"filterId": 313
},
{
"id": 14309,
"title": "Cálculo de Programas",
Expand All @@ -1632,16 +1608,16 @@
"filterId": 311
},
{
"id": 14309,
"title": "Cálculo de Programas",
"id": 14310,
"title": "Desenvolvimento de Sistemas de Software",
"theoretical": false,
"shift": "TP5",
"shift": "PL6",
"building": "CP2",
"room": "1.13",
"room": "2.08",
"day": 3,
"start": "11:00",
"end": "13:00",
"filterId": 311
"filterId": 313
},
{
"id": 14313,
Expand All @@ -1655,6 +1631,18 @@
"end": "13:00",
"filterId": 312
},
{
"id": 14298,
"title": "Laboratórios de Informática IV",
"theoretical": false,
"shift": "OT4",
"building": "CP3",
"room": "0.08",
"day": 0,
"start": "14:00",
"end": "16:00",
"filterId": 315
},
{
"id": 14312,
"title": "Sistemas Distribuídos",
Expand Down Expand Up @@ -1739,6 +1727,54 @@
"end": "18:00",
"filterId": 314
},
{
"id": 14298,
"title": "Laboratórios de Informática IV",
"theoretical": false,
"shift": "OT5",
"building": "CP1",
"room": "2.26",
"day": 2,
"start": "16:00",
"end": "18:00",
"filterId": 315
},
{
"id": 14298,
"title": "Laboratórios de Informática IV",
"theoretical": false,
"shift": "OT4",
"building": "CP1",
"room": "2.25",
"day": 2,
"start": "16:00",
"end": "18:00",
"filterId": 315
},
{
"id": 14309,
"title": "Cálculo de Programas",
"theoretical": false,
"shift": "TP4",
"building": "CP1",
"room": "1.15",
"day": 0,
"start": "18:00",
"end": "20:00",
"filterId": 311
},
{
"id": 14309,
"title": "Cálculo de Programas",
"theoretical": false,
"shift": "TP5",
"building": "CP1",
"room": "1.18",
"day": 1,
"start": "18:00",
"end": "20:00",
"filterId": 311
},
{
"id": 14600,
"title": "Aplicações e Serviços de Computação em Nuvem",
Expand Down Expand Up @@ -1853,7 +1889,7 @@
"theoretical": false,
"shift": "PL4",
"building": "7",
"room": "0.04",
"room": "0.07",
"day": 3,
"start": "09:00",
"end": "11:00",
Expand Down Expand Up @@ -2093,7 +2129,7 @@
"theoretical": false,
"shift": "TP2",
"building": "CP1",
"room": "1.16",
"room": "2.20",
"day": 0,
"start": "12:00",
"end": "13:00",
Expand Down
39 changes: 0 additions & 39 deletions scraper/modules/create_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,43 +84,4 @@ def create_filters(shifts: list[dict], subjects: list[dict]):
"shifts": subject_shifts
})

filters = [
{
"id": 0,
"name": "CeSIUM",
"groupId": 0,
"semester": 0
},
{
"id": 1,
"name": "UMinho",
"groupId": 0,
"semester": 0
},
{
"id": 2,
"name": "SEI",
"groupId": 0,
"semester": 0
},
{
"id": 3,
"name": "CoderDojo",
"groupId": 0,
"semester": 0
},
{
"id": 4,
"name": "JOIN",
"groupId": 0,
"semester": 0
},
{
"id": 5,
"name": "JORDI",
"groupId": 0,
"semester": 0
}
] + filters

return filters

0 comments on commit 26eee22

Please sign in to comment.