Skip to content

Commit

Permalink
Fix argument name for column count
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Sep 11, 2024
1 parent cef7e93 commit f9c4bf7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions repology-webapp/src/views/badges/vertical_allrepos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ pub struct QueryParams {
#[serde(deserialize_with = "crate::query::deserialize_bool_flag")]
pub allow_ignored: bool,
#[serde(default)]
#[serde(rename = "columns")]
pub columns_count: usize,

#[serde(default)]
Expand Down
2 changes: 1 addition & 1 deletion repology-webapp/tests/badges.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ async fn test_badge_vertical_allrepos(pool: PgPool) {
// columns
check_svg!(
pool,
"/badge/vertical-allrepos/zsh.svg?columns_count=4",
"/badge/vertical-allrepos/zsh.svg?columns=4",
@"string(//svg:g[1]/svg:g[@font-size=11][1]/svg:text[1])" == "FreeBSD",
@"string(//svg:g[1]/svg:g[@font-size=11][1]/svg:text[3])" == "1.1",
@"string(//svg:g[1]/svg:g[@font-size=11][1]/svg:text[5])" == "freshcode.club",
Expand Down

0 comments on commit f9c4bf7

Please sign in to comment.