Skip to content

Commit

Permalink
server: fix evaluation's num computation
Browse files Browse the repository at this point in the history
  • Loading branch information
pnmadelaine committed Oct 23, 2023
1 parent a339eaf commit 7b345cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions typhon/src/jobsets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ impl Jobset {
.first::<models::Evaluation>(conn)
.optional()?;
let max = schema::evaluations::table
.filter(schema::evaluations::jobset_id.eq(self.jobset.id))
.select(diesel::dsl::max(schema::evaluations::num))
.first::<Option<i64>>(conn)?
.unwrap_or(0);
Expand Down

0 comments on commit 7b345cc

Please sign in to comment.