Skip to content

Commit

Permalink
attempt fixing timeout issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Gitznik committed Oct 3, 2024
1 parent 9d0aed3 commit 672a39e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1-bookworm as builder
FROM rust:1.79-bookworm as builder
WORKDIR /usr/src/app

COPY . .
Expand Down
2 changes: 2 additions & 0 deletions src/routes/scores/get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ async fn match_summary(match_id: Uuid, pg_pool: &PgPool) -> Result<String, anyho

let match_rows: Vec<String> = match_scores
.into_iter()
.take(5)
.map(|res| {
format!(
r#"
Expand All @@ -131,6 +132,7 @@ async fn match_summary(match_id: Uuid, pg_pool: &PgPool) -> Result<String, anyho
<figure align="center">
<img src="images/match_plots/{}.png" alt="Match Results Graph">
</figure>
<h3>Most recent results</h3>
<table role="grid">
<thead>
<tr>
Expand Down

0 comments on commit 672a39e

Please sign in to comment.