Commit 80481434 authored by Matija Obreza's avatar Matija Obreza
Browse files

Return PDCI statistics only on historic=false accessions

parent 4a70a058
......@@ -40,7 +40,7 @@ public interface PDCIRepository extends JpaRepository<PDCI, Long> {
* @return [ Float min(pdci.score), Float max(pdci.score), Double
* avg(pdci.score), Long count(pdci) ]
*/
@Query("select min(pdci.score), max(pdci.score), avg(pdci.score), count(pdci) from Accession a join a.accessionId.pdci pdci where a.institute = ?1")
@Query("select min(pdci.score), max(pdci.score), avg(pdci.score), count(pdci) from Accession a join a.accessionId.pdci pdci where a.institute = ?1 and a.historic = false")
Object statistics(FaoInstitute faoInstitute);
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment