Go to file
Joshua Coles f0b458f6a1 Improve event summary parsing in course model
This commit refines event summary parsing in the course model. Instead of splitting the summary, it uses regular expressions to extract the unit code and short lecture title more accurately. The update also includes better handling of events that don't match this format.
2024-02-04 14:03:13 +00:00
.github/workflows Ahh it used the wrong key... bugger 2023-10-08 19:28:53 +01:00
app Improve event summary parsing in course model 2024-02-04 14:03:13 +00:00
bin Fix permissions on docker-entrypoint 2023-10-06 23:08:31 +01:00
config Add new semester 2 courses 2024-02-04 13:49:44 +00:00
db Add new semester 2 courses 2024-02-04 13:49:44 +00:00
lib Initial commit 2023-09-29 17:45:19 +01:00
log Initial commit 2023-09-29 17:45:19 +01:00
public Initial commit 2023-09-29 17:45:19 +01:00
sig Add toggl scraping 2023-09-29 21:06:33 +01:00
storage Initial commit 2023-09-29 17:45:19 +01:00
test Flesh out work items in the UI 2023-10-08 16:06:07 +01:00
tmp Initial commit 2023-09-29 17:45:19 +01:00
vendor Initial commit 2023-09-29 17:45:19 +01:00
.dockerignore An attempt at docker 2023-10-04 14:14:06 +01:00
.gitattributes Initial commit 2023-09-29 17:45:19 +01:00
.gitignore Tailwind init 2023-09-29 17:52:01 +01:00
.ruby-version Initial commit 2023-09-29 17:45:19 +01:00
config.ru Initial commit 2023-09-29 17:45:19 +01:00
Dockerfile Upgrade Rails to 7.1 rc2 to allow SECRET_KEY_BASE to function 2023-10-04 17:03:44 +01:00
Dockerfile-static-files Add static files docker container 2023-10-08 18:52:39 +01:00
Gemfile Add mssing sidekiq-scheduler 2023-10-08 22:14:21 +01:00
Gemfile.lock Add mssing sidekiq-scheduler 2023-10-08 22:14:21 +01:00
Procfile Add services to Procfile 2023-10-04 14:36:57 +01:00
Rakefile Initial commit 2023-09-29 17:45:19 +01:00
README.md Add ability to start lecture and redirect to recorded content. 2023-10-04 15:00:23 +01:00

Lecture Attendance Management System

Alterations

Continuum Mechanics

continuum_mechanics = Course.find(nil)

continuum_mechanics.import_from_calendar!
continuum_mechanics.lectures.filter { |lecture| lecture.start_time.monday? }.map {|lecture| lecture.update!(kind: Lecture.kinds[:problems_class]) }
continuum_mechanics.lectures.find_by(start_time: '2023-10-02 08:15:00.000000').destroy!
continuum_mechanics.renumber_lectures!