Skip to content

Commit 90065fa

Browse files
committed
Run rubocop
1 parent 2aded81 commit 90065fa

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/snapshots-app/app/controllers/api/summary_statistics_controller.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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
205205
subquery = BackupMetadatum
206206
.where(course: course_endpoint, assignment: assignment_endpoint)
207207
.select("*, ROW_NUMBER() OVER (PARTITION BY student_email ORDER BY created DESC) as rank")

src/snapshots-app/db/seeds.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
# "483b88d6"
150150
# ]
151151

152-
cs61a_hashes = ['e3384165',
152+
cs61a_hashes = [ 'e3384165',
153153
'1faf1492',
154154
'0757b4af',
155155
'5e0b5dff',
@@ -173,7 +173,7 @@
173173
'395b6a1a',
174174
'f0cd1289',
175175
'90cfed97',
176-
'41a86dbb']
176+
'41a86dbb' ]
177177

178178
# c88c_hashes = [ '7dcfb139', 'cf7b9cab', '88e94290' ]
179179
# c88c_hashes = ['e3384165',

0 commit comments

Comments
 (0)