Skip to content

Commit

Permalink
Merge pull request #2211 from DFE-Digital/fix-incorrect-submission
Browse files Browse the repository at this point in the history
Check assessment subjects rather than applicant subjects
  • Loading branch information
thomasleese authored May 16, 2024
2 parents 6f5cea2 + fac2df9 commit 4217219
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/lib/analytics/publication_extract.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ def call
declines = declined_application_forms(country)
withdraws = withdrawn_application_forms(country)

submissions_with_subjects = submissions.where.not(subjects: [])
submissions_with_subjects =
submissions.select do |application_form|
application_form.assessment&.subjects.present?
end

induction_required =
awards
Expand Down

0 comments on commit 4217219

Please sign in to comment.