Swarthmore / moodle-local_accessibility_filescan

A local Moodle plugin to check the accessibility of course materials.
GNU General Public License v3.0
1 stars 0 forks source link

Sccanner does not follow limits set in settings #54

Open aweed1 opened 1 year ago

aweed1 commented 1 year ago

The scanner doesn't follow the user-set limits in the plugin settings.

In the example below, only 5 pdfs should be scanned, but instead 25 are.

root@ac63ba10dda8:/var/www/html/admin/cli# php scheduled_task.php --execute="\local_a11y_check\task\scan_pdf_files"
Execute scheduled task: Scan PDF files (local_a11y_check\task\scan_pdf_files)
... started 16:04:22. Current memory use 13.9 MB.
Scanning 5 PDF files for accessibility issues.
Found 25 files to scan
Scanning 95
Scanning 97
Scanning 98
Scanning 99
Scanning 100
Scanning 101
Scanning 102
Scanning 103
Scanning 104
Scanning 105
Scanning 106
Scanning 107
Scanning 108
Scanning 109
Scanning 110
Scanning 111
Scanning 112
Scanning 113
Scanning 114
Scanning 115
Scanning 116
Scanning 117
Scanning 118
Scanning 119
Scanning 120
... used 77 dbqueries
... used 1.7871079444885 seconds
Scheduled task complete: Scan PDF files (local_a11y_check\task\scan_pdf_files)