Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Paper attemts

Start time

When building a report based on user attempts of papers the start time on some papers should include a grace period.

...

Code Block
languagesql
DATE_ADD(l4o.started, INTERVAL $time_int MINUTE) >= ?

Selecting students

When selecting students for logs you should use the $rolesjoin = \log::get_student_only() it has optional parameters that let you change which table it joins with (by default it will join with users) and then use it like:

...