Content-Length: 2093 | pFad | http://github.com/postgresml/postgresml/pull/1193.diff
thub.com diff --git a/pgml-dashboard/src/api/cms.rs b/pgml-dashboard/src/api/cms.rs index 6cc774ebe..5e5f92c83 100644 --- a/pgml-dashboard/src/api/cms.rs +++ b/pgml-dashboard/src/api/cms.rs @@ -77,7 +77,7 @@ impl Collection { path = path.join("README"); } - let path = self.root_dir.join(path.with_extension("md")); + let path = self.root_dir.join(format!("{}.md", path.to_string_lossy())); self.render(&path, cluster, self).await } diff --git a/pgml-dashboard/src/main.rs b/pgml-dashboard/src/main.rs index df7efeed4..576fee368 100644 --- a/pgml-dashboard/src/main.rs +++ b/pgml-dashboard/src/main.rs @@ -292,7 +292,7 @@ mod test { #[rocket::async_test] async fn test_blogs() { let client = Client::tracked(rocket().await).await.unwrap(); - let response = client.get("/blog/postgresml-raises-4.7M-to-launch-serverless-ai-application-databases-based-on-postgres").dispatch().await; + let response = client.get("/blog/postgresml-raises-usd4.7m-to-launch-serverless-ai-application-databases-based-on-postgres").dispatch().await; assert_eq!(response.status().code, 200); } } diff --git a/pgml-dashboard/src/utils/tabs.rs b/pgml-dashboard/src/utils/tabs.rs index 744e43dd9..77e8a502e 100644 --- a/pgml-dashboard/src/utils/tabs.rs +++ b/pgml-dashboard/src/utils/tabs.rs @@ -18,12 +18,11 @@ impl<'a> Tabs<'a> { active: Option<&'a str>, ) -> anyhow::ResultFetched URL: http://github.com/postgresml/postgresml/pull/1193.diff
Alternative Proxies: