Go to file
Joshua Coles a0918ce011 Add total lecture time and improve time representation
In the attendance tracker view, the total times for preparation, in lecture, and review have been humanized for better readability. Also, total time spent on lectures for each week has been included for a quicker overview. A helper method 'humanise_duration' has been added in application helper to convert time into a more readable format. Changes have been done in 'lecture' model for calculation of total time.
2023-10-06 22:38:48 +01:00
.github/workflows Add build script 2023-10-04 14:15:33 +01:00
app Add total lecture time and improve time representation 2023-10-06 22:38:48 +01:00
bin An attempt at docker 2023-10-04 14:14:06 +01:00
config Update sidekiq description 2023-10-06 22:14:56 +01:00
db Remove attendances model 2023-10-06 22:09:38 +01: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 Create TrackedTimeEntry as more general replacement of Attendance to include preparation and review 2023-10-06 21:09:28 +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
Gemfile Upgrade Rails to 7.1 rc2 to allow SECRET_KEY_BASE to function 2023-10-04 17:03:44 +01:00
Gemfile.lock Upgrade Rails to 7.1 rc2 to allow SECRET_KEY_BASE to function 2023-10-04 17:03:44 +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!