Skip to content

Commit

Permalink
specific orchestra
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarsh24 committed Jan 13, 2025
1 parent f270614 commit c535593
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/models/orchestra.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ def compositions_recorded_multiple_times
end

def recordings_count_for_singer(singer)
recordings.joins(:singers).where(singers: {id: singer.id}).size
recordings
.joins(:singers)
.where(singers: {id: singer.id})
.where(orchestra_id: id)
.size
end

def export_filename
Expand Down

0 comments on commit c535593

Please sign in to comment.