Split courses by semester

This commit is contained in:
Gonne 2024-05-12 18:38:14 +02:00
parent 4bffdb53e9
commit 46dfa2a152
5 changed files with 87 additions and 94 deletions

View file

@ -7,7 +7,8 @@ e.g. by executing `go version`.
Initialize the database. For developing, we recommend using sqlite:
user@host:path/to/repo$ sqlite3 officeHours.db -init officeHoursSQLite.sql
sqlite> .read dummydatasqlite.sql
sqlite> .read dummydata/rooms.sql
sqlite> .read dummydata/summerCourses.sql
Now start the development webserver, note that you need to manually
restart it to code changes take effect.

7
dummydata/rooms.sql Normal file
View file

@ -0,0 +1,7 @@
INSERT INTO `room` (name, max_occupy) VALUES
('S2|15-333', 1),
('S2|15-336', 2),
('S2|15-345', 2),
('S2|15-415', 1),
('S2|15-444', 1),
('Sonstige', 1024);

View file

@ -0,0 +1,37 @@
INSERT INTO `course` (name) VALUES
('Algorithmic Discrete Mathematics'),
('Analysis II'),
('Analysis II (engl.)'),
('Aussagen- und Prädikatenlogik'),
('Discrete Optimization'),
('Einführung in die Algebra'),
('Einführung in die Finanzmathematik'),
('Einführung in die mathematische Modellierung'),
('Einführung in die Programmierung'),
('Einführung in die Stochastik'),
('Elementare PDE'),
('Elementare Zahlentheorie'),
('Graph Theory'),
('Höhere Mathematik II'),
('Integrationstheorie'),
('LA für Physik und Lehramt'),
('Linear Algebra II (engl.)'),
('Lineare Algebra II'),
('Logik und Grundlagen'),
('Mathe für Chemiker'),
('Mathe II für Informatik'),
('Mathe II für Bauwesen'),
('Mathe II für ET'),
('Mathe II für Maschinenbau'),
('Mathe IV für Maschinenbau'),
('Mathe IV (ET) / Mathe III (Inf) / Praktische Mathe (MEd)'),
('Mathe für MINT'),
('Mathe & Statistik für Biologen'),
('Mathematik im Kontext'),
('Model Theory'),
('Nichtlineare Optimierung'),
('Numerische Lineare Algebra'),
('Riemannsche Flächen'),
('Sobolev Spaces'),
('Topologie'),
('Vertrauenspersonen');

View file

@ -0,0 +1,41 @@
INSERT INTO `course` (name) VALUES
('Algebra'),
('Analysis I'),
('Analysis I (engl.)'),
('Applied Proof Theory'),
('Automaten, Formale Sprachen und Entscheidbarkeit'),
('Complex Analysis'),
('Differentialgeometrie'),
('Einführung in die Numerische Mathematik'),
('Einführung in die Optimierung'),
('Einführung in die Programmierung'),
('Funktionalanalysis'),
('Geometrie für Lehramt'),
('Gewöhnliche Differentialgleichungen'),
('Höhere Mathematik I'),
('Introduction to mathematical logic'),
('LA für Physik und Lehramt'),
('Linear Algebra I (engl.)'),
('Lineare Algebra I'),
('Mathe für Chemiker'),
('Mathe I für Informatik'),
('Mathe I für Maschinenbau'),
('Mathe I für Bau'),
('Mathe I für ET'),
('Mathe III für Maschinenbau'),
('Mathe III für Bau'),
('Mathe III ET'),
('Mathe IV für Maschinenbau'),
('Mathe IV (ET) / Mathe III (Inf) / Praktische Mathe (MEd)'),
('Mathe für MINT'),
('Mathe & Statistik für Biologen'),
('Mathematik als gemeinsame Sprache der Naturwissenschaften'),
('Numerik gewöhnlicher Differentialgleichungen'),
('Numerische Mathe für MB (IV)'),
('Parabolische PDEs'),
('Partial Differential Equations'),
('Probability Theory'),
('Statistik I für Humanwissenschaftler'),
('Statistik I für WI'),
('Vertrauenspersonen'),
('Wahrscheinlichkeitstheorie');

View file

@ -1,93 +0,0 @@
INSERT INTO `room` (name, max_occupy) VALUES
('S2|15-333', 1),
('S2|15-336', 2),
('S2|15-345', 2),
('S2|15-415', 1),
('S2|15-444', 1),
('Sonstige', 1024);
INSERT INTO `course` (name) VALUES
('Algebra'),
('Algebraische Geometrie'),
('Algebraische Kurven'),
('Algebraische Topologie'),
('Algorithmic Discrete Mathematics'),
('Analysis I (engl.)'),
('Analysis I'),
('Analysis II (engl.)'),
('Analysis II'),
('Applied Proof Theory'),
('Aussagen- und Prädikatenlogik'),
('Automaten, Formale Sprachen und Entscheidbarkeit'),
('Banach- und C*-Algebren'),
('Classical and Non-Classical Model Theory'),
('Complex Analysis'),
('Darstellende Geometrie'),
('Darstellungstheorie'),
('Differentialgeometrie'),
('Differentialgeometrie für VI'),
('Diskrete Mathematik'),
('Diskrete Optimierung'),
('Einführung in die Algebra'),
('Einführung in die Finanzmathematik'),
('Einführung in die Numerische Mathematik'),
('Einführung in die Optimierung'),
('Einführung in die Programmierung'),
('Einführung in die Stochastik'),
('Einführung in die mathematische Modellierung'),
('Elementare PDE'),
('Elementare Zahlentheorie'),
('Funktionalanalysis'),
('Funktionalanalysis II'),
('Geometrie für Lehramt'),
('Gewöhnliche Differentialgleichungen'),
('Graph Theory'),
('Höhere Mathematik I'),
('Höhere Mathematik II'),
('Integrationstheorie'),
('Introduction to mathematical logic'),
('Kurvenschätzung'),
('LA für Physik und Lehramt'),
('Lebensversicherungsmathematik'),
('Linear Algebra I (engl.)'),
('Lineare Algebra I'),
('Linear Algebra II (engl.)'),
('Lineare Algebra II'),
('Logics of Knowledge and Information'),
('Manifolds'),
('Mathe für Chemiker'),
('Mathe I für Informatik'),
('Mathe I für Maschinenbau'),
('Mathe I für Bau'),
('Mathe I für ET'),
('Mathe II für Informatik'),
('Mathe II für Bauwesen'),
('Mathe II für ET'),
('Mathe II für Maschinenbau'),
('Mathe III für Maschinenbau'),
('Mathe III für Bau'),
('Mathe III ET'),
('Mathe IV für Maschinenbau'),
('Mathe IV (ET) / Mathe III (Inf) / Praktische Mathe (MEd)'),
('Mathe für MINT'),
('Mathe & Statistik für Biologen'),
('Mathematik als gemeinsame Sprache der Naturwissenschaften'),
('Mathematik im Kontext'),
('Mathematische Grundlagen der Quantenmechanik'),
('Mathematische Statistik'),
('Model Theory'),
('Nichtlineare Optimierung'),
('Numerik gewöhnlicher Differentialgleichungen'),
('Numerische Lineare Algebra'),
('Numerische Mathe für MB (IV)'),
('Parabolische PDEs'),
('Partial Differential Equations I'),
('Probability Theory'),
('Riemannsche Flächen'),
('Schadenversicherungsmathematik'),
('Sobolev Spaces'),
('Spieltheorie'),
('Statistik I für Humanwissenschaftler'),
('Statistik I für WI'),
('Stochastische Prozesse I'),
('Topologie'),
('Wahrscheinlichkeitstheorie');