Skip to content

Commit

Permalink
fix schema_gnl view mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
gsterjov committed Jan 30, 2025
1 parent c4916b1 commit 2ab056a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
11 changes: 6 additions & 5 deletions core/src/schema_gnl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,17 +152,18 @@ diesel::table! {
other -> Nullable<Numeric>,
total_genomic -> Nullable<Numeric>,
species -> Nullable<BigInt>,

complete_genomes -> Nullable<Numeric>,
partial_genomes -> Nullable<Numeric>,
assembly_chromosomes -> Nullable<Numeric>,
assembly_scaffolds -> Nullable<Numeric>,
assembly_contigs -> Nullable<Numeric>,

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,
}
}

Expand Down
10 changes: 5 additions & 5 deletions server/src/database/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ab056a

Please sign in to comment.