From 49282a72bfb67b436867a2af0770a598f7fe354b Mon Sep 17 00:00:00 2001 From: Joshua Coles Date: Sun, 4 Feb 2024 13:49:44 +0000 Subject: [PATCH] Add new semester 2 courses --- config/initializers/constants.rb | 1 + db/seeds.rb | 36 ++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/config/initializers/constants.rb b/config/initializers/constants.rb index 44c492e..054ab3b 100644 --- a/config/initializers/constants.rb +++ b/config/initializers/constants.rb @@ -1 +1,2 @@ START_OF_YEAR_5_SEMESTER_1 = Time.new('2023-10-02') +START_OF_YEAR_5_SEMESTER_2 = Time.new('2024-02-05') diff --git a/db/seeds.rb b/db/seeds.rb index 5ecea6e..2d2e923 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -37,3 +37,39 @@ Course.create!( unit_code: 'MA40042', semester_start_date: START_OF_YEAR_5_SEMESTER_1.to_date, ) + +Course.create!( + title: 'Relativistic Cosmology', + panopto_folders: ["dca2c510-49b4-4a24-9c91-b07701022d03"], + toggl_project: 199383703, + unit_code: 'PH40112', + semester_start_date: START_OF_YEAR_5_SEMESTER_2.to_date, + homepage: 'https://moodle.bath.ac.uk/course/view.php?id=58189' +) + +Course.create!( + title: 'Advanced Quantum Theory', + panopto_folders: [], + toggl_project: 199383691, + unit_code: 'PH40084', + semester_start_date: START_OF_YEAR_5_SEMESTER_2.to_date, + homepage: 'https://moodle.bath.ac.uk/course/view.php?id=30520' +) + +Course.create!( + title: 'Analysis in Hilbert Spaces', + panopto_folders: [], + toggl_project: 199383698, + unit_code: 'MA40256', + semester_start_date: START_OF_YEAR_5_SEMESTER_2.to_date, + homepage: 'https://moodle.bath.ac.uk/course/view.php?id=57713' +) + +Course.create!( + title: 'Elasticity', + panopto_folders: [], + toggl_project: 198859760, + unit_code: 'MA40049', + semester_start_date: START_OF_YEAR_5_SEMESTER_2.to_date, + homepage: 'https://moodle.bath.ac.uk/course/view.php?id=1814' +)