![]() Previously, students could add the access report, it just didn't give them any information. I check the permissions of the user to make sure they can generate a report and don't add the button if they cannot.In the data supplied, they count taking a quiz as a view, but they subtract that off in the online access report. I modified the quiz views to match what Canvas gives.I added the current course score and current course grade to the report (the grade is only available if you're using a grading scheme).I added the Last Activity and Total Activity Time from the People page to the report.Requests shouldn't fail, but if they do, I throttle it even more and then try to repeat the failed requests. Large courses were getting inconsistent results because the requests were failing. It now uses a throttling library to play nicer with Canvas.Previously it appended the data, so if you ran it twice without refreshing the page, the data would be there twice. The script can be run correctly without reloading the page.Previously, this was only for SIS data unless you edited the code. The script can now hide empty columns with no data. ![]() That is no guarantee that there is an access report, but I never found an access report without having a last activity date. The script now only tries to fetch usage information when there is a last_activity_at date.You can generate a delimited list of sections, duplicate the information for each section, or just return the first section found. The script can now handle students enrolled in multiple sections of the course.Version 14 relied on Bottleneck's idle function to kick in, but it might have triggered before all of the fetches were done. Version 14 sorted it by the Canvas User ID. The file is now sorted by the sortable name, when present.Here are some of the changes for version 15 It turned up a lot of little things and at least one place where I was using an array when I thought I was using an object. This time I installed a new linter to check for crud and subtle issues with the code.
0 Comments
Leave a Reply. |