@@ -193,15 +193,15 @@ def get_active_time_spent_distribution(course_endpoint, assignment_endpoint, stu
193193
194194 # Total lint errors across all files for the student's latest backup
195195 def get_lint_errors_distribution ( course_endpoint , assignment_endpoint , student_email )
196- # lint_counts = BackupMetadatum
197- # .where(course: course_endpoint, assignment: assignment_endpoint)
198- # .group(:student_email)
199- # .having("created = MAX(created)")
200- # # TODO don't hardcode ants.py
201- # .joins("INNER JOIN lint_errors ON lint_errors.file_contents_location = CONCAT(backup_metadata.file_contents_location, '/ants.py')")
202- # .select("student_email, COUNT(lint_errors.id) as error_count")
203-
204- # Subquery to rank backups for each student by date
196+ # lint_counts = BackupMetadatum
197+ # .where(course: course_endpoint, assignment: assignment_endpoint)
198+ # .group(:student_email)
199+ # .having("created = MAX(created)")
200+ # # TODO don't hardcode ants.py
201+ # .joins("INNER JOIN lint_errors ON lint_errors.file_contents_location = CONCAT(backup_metadata.file_contents_location, '/ants.py')")
202+ # .select("student_email, COUNT(lint_errors.id) as error_count")
203+
204+ # Subquery to rank backups for each student by date
205205subquery = BackupMetadatum
206206 . where ( course : course_endpoint , assignment : assignment_endpoint )
207207 . select ( "*, ROW_NUMBER() OVER (PARTITION BY student_email ORDER BY created DESC) as rank" )
0 commit comments