Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Won't sync more than 10 files per subdirectory #10

Open
LuxMiranda opened this issue Sep 26, 2017 · 3 comments
Open

Won't sync more than 10 files per subdirectory #10

LuxMiranda opened this issue Sep 26, 2017 · 3 comments

Comments

@LuxMiranda
Copy link
Contributor

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

@dklug
Copy link
Contributor

dklug commented Nov 14, 2017

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.

@LuxMiranda
Copy link
Contributor Author

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

@perslev
Copy link
Owner

perslev commented Sep 13, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants