canvasapi
canvasapi copied to clipboard
Endpoint for Submission Class that returns data from the "submission_comments" field ...?
I have a script that uploads comments to a specific assignment based on the course_id, user_id, etc. I know there is an endpoint] (v1/courses/{course_id}/assignments/{assignment_id}/submissions/{user_id}) that returns information about the submission comments field. Is there a way to check to see if comments have been added to a particular assignment before, say, I upload comments in my script?
I don't think canvasapi has any function in the Submission class that would allow me to not produce duplicate comments uploaded to a student assignment. There is an "edit" function and also a "get_submission_peer_reviews" but I'm not sure the latter returns the data I would need.
Obviously, the script now doesn't have this check, so, as it stands currently, it'll just upload duplicate comments if I were to run the script more than once (say, by error).
My apologies ahead of time if there is a way to get this data and I just missed it. (Also, if this is a duplicate here in the issues arena, feel free to let me know that too!)
Thanks to everyone there that works on this repository—it's been a hugely significant for me and my workflows, that's for sure!