From 2ab056a8174ea8b1362c60b086acc7b0f620902c Mon Sep 17 00:00:00 2001 From: Goran Sterjov Date: Thu, 30 Jan 2025 11:33:12 +1100 Subject: [PATCH] fix schema_gnl view mismatch --- core/src/schema_gnl.rs | 11 ++++++----- server/src/database/stats.rs | 10 +++++----- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/core/src/schema_gnl.rs b/core/src/schema_gnl.rs index 1aac6c5..b846c31 100644 --- a/core/src/schema_gnl.rs +++ b/core/src/schema_gnl.rs @@ -152,17 +152,18 @@ diesel::table! { other -> Nullable, total_genomic -> Nullable, species -> Nullable, + complete_genomes -> Nullable, partial_genomes -> Nullable, assembly_chromosomes -> Nullable, assembly_scaffolds -> Nullable, assembly_contigs -> Nullable, - complete_genomes_coverage -> BigInt, - partial_genomes_coverage -> BigInt, - assembly_chromosomes_coverage -> BigInt, - assembly_scaffolds_coverage -> BigInt, - assembly_contigs_coverage -> BigInt, + total_complete_genomes_coverage -> BigInt, + total_partial_genomes_coverage -> BigInt, + total_assembly_chromosomes_coverage -> BigInt, + total_assembly_scaffolds_coverage -> BigInt, + total_assembly_contigs_coverage -> BigInt, } } diff --git a/server/src/database/stats.rs b/server/src/database/stats.rs index b1a5b3e..bb1a3be 100644 --- a/server/src/database/stats.rs +++ b/server/src/database/stats.rs @@ -182,11 +182,11 @@ impl StatsProvider { taxa_tree_stats::assembly_chromosomes, taxa_tree_stats::assembly_scaffolds, taxa_tree_stats::assembly_contigs, - taxa_tree_stats::complete_genomes_coverage, - taxa_tree_stats::partial_genomes_coverage, - taxa_tree_stats::assembly_chromosomes_coverage, - taxa_tree_stats::assembly_scaffolds_coverage, - taxa_tree_stats::assembly_contigs_coverage, + taxa_tree_stats::total_complete_genomes_coverage, + taxa_tree_stats::total_partial_genomes_coverage, + taxa_tree_stats::total_assembly_chromosomes_coverage, + taxa_tree_stats::total_assembly_scaffolds_coverage, + taxa_tree_stats::total_assembly_contigs_coverage, )) // we only wants paths generated from a specific root node otherwise // we'd get the same taxon from paths with different roots since the taxa