Show/hide unit components until students login to Sence
To enable API have to setup your own variables.
SENCE_RUT_OTEC = 'your_rut_otec'
SENCE_TOKEN = 'your_sence_token'
SENCE_API_URL = 'your_sence_api_url' # ends with '/'
The app will get this variables from site configurations (priority) or from production.py in the lms and cms settings.
The default session expire time is 6 (hours). It can be modified by setting SENCE_EXPIRE_TIME at production.py in the lms settings. This value has to be a number of hours (integer).
To enable this app have to setup the course at /admin/sence/eolsencecoursesetup/. Course id, Sence Code, Sence Line are Required.
Prepare tests:
- Install act following the instructions in https://nektosact.com/installation/index.html
Run tests:
- In a terminal at the root of the project
act -W .github/workflows/pythonapp.yml
- Attendance Report