CanvasSync
CanvasSync copied to clipboard
Won't sync more than 10 files per subdirectory
In "Other Files", it seems that CanvasSync is only syncing the first ten files per subfolder...
This same issue also applies to courses. When you query JSON, by default it will only return 10 of them. A fix I've been using is appending ?per_page=100 when calling get_json. For example, my instructure_api.py line 77 currently looks like this: return self.get_json(u"/api/v1/folders/%s/files?per_page=100" % folder_id)
. If you want to get more than 100 I think you have to query multiple times. There's probably a more elegant solution to this than what I came up with, I haven't had time to come up with anything more as it's been a busy semester.
Ah, very helpful, thank you! This is a decent enough workaround that I can get back to using the tool for the rest of the semester until one of us has time to fix it :)
I have not been able to work on this project for quite some time, did any of you come up with a better solution?