File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -329,6 +329,7 @@ def stats
329
329
330
330
@total_score_per_style = BasilCommission . with_deleted
331
331
. where ( style : active_styles )
332
+ . where ( basil_version : @version )
332
333
. joins ( :basil_feedbacks )
333
334
. group ( :style )
334
335
. sum ( :score_adjustment )
@@ -337,6 +338,7 @@ def stats
337
338
. reverse
338
339
@average_score_per_style = BasilCommission . with_deleted
339
340
. where ( style : active_styles )
341
+ . where ( basil_version : @version )
340
342
. joins ( :basil_feedbacks )
341
343
. group ( :style )
342
344
. average ( :score_adjustment )
@@ -346,6 +348,7 @@ def stats
346
348
347
349
@average_score_per_page_type = BasilCommission . with_deleted
348
350
. where . not ( completed_at : nil )
351
+ . where ( basil_version : @version )
349
352
. joins ( :basil_feedbacks )
350
353
. group ( :entity_type )
351
354
. average ( :score_adjustment )
You can’t perform that action at this time.
0 commit comments