CanvasSync icon indicating copy to clipboard operation
CanvasSync copied to clipboard

Won't sync more than 10 files per subdirectory

Open LuxMiranda opened this issue 7 years ago • 3 comments

In "Other Files", it seems that CanvasSync is only syncing the first ten files per subfolder...

LuxMiranda avatar Sep 26 '17 03:09 LuxMiranda

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.

dklug avatar Nov 14 '17 21:11 dklug

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 :)

LuxMiranda avatar Nov 14 '17 21:11 LuxMiranda

I have not been able to work on this project for quite some time, did any of you come up with a better solution?

perslev avatar Sep 13 '18 12:09 perslev