Skip to content

Commit

Permalink
#2037 correctly export rfm classification details
Browse files Browse the repository at this point in the history
  • Loading branch information
grindarius committed Jun 26, 2024
1 parent 8a88175 commit 475569e
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions apps/cli/src/backup/projects/export/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,16 @@ export const RFM_CLASSIFICATIONS = `
st.songtype,
cr.present
from classification_results cr
join job_params_classification jpc on cr.job_id = jpc.job_id
join models m on jpc.model_id = m.model_id
join songtypes st on cr.songtype_id = st.songtype_id
join species sp on cr.species_id = sp.species_id
where m.model_type_id = 4 and m.project_id = $projectId and m.deleted = 0
join job_params_classification jpc on cr.job_id = jpc.job_id
join jobs j on jpc.job_id = j.job_id
join models m on jpc.model_id = m.model_id
join songtypes st on cr.songtype_id = st.songtype_id
join species sp on cr.species_id = sp.species_id
where
m.project_id = $projectId and
m.deleted = 0 and
m.model_type_id = 4 and
j.job_type_id = 2 and
j.state = 'completed' and
j.completed = 1
`

0 comments on commit 475569e

Please sign in to comment.