Closed dchess closed 4 years ago
StudentSubmissions(classroom_service).get_and_write_to_db( sql, course_ids, debug=config.DEBUG )
When this call encounters certain courses, it is loading way more records than exist in the course. For instance there is a course with 22 assignments and 29 students, that returns 100Ks of records. It should only be pulling back ~600+ records.
@zkagin I tried removing the tenacity retry decorator but that does not seem to be the cause of the issue.
https://github.com/kipp-bayarea/google_classroom/blob/2ae90c574d376cb0bf487050df80591ea11c5cc4/api.py#L393-L400
@zkagin: I think the issue is that this request object doesn't ever get passed the page_token!
When this call encounters certain courses, it is loading way more records than exist in the course. For instance there is a course with 22 assignments and 29 students, that returns 100Ks of records. It should only be pulling back ~600+ records.