Skip to content

Commit

Permalink
Stats card: migrate from show_total_reviews to show option (resolves a…
Browse files Browse the repository at this point in the history
…nuraghazra#2836) (anuraghazra#2844)

* Stats card: migrate from show_total_reviews to show option (resolves anuraghazra#2836)

* dev

* docs: improve documentation

---------

Co-authored-by: rickstaa <[email protected]>
  • Loading branch information
2 people authored and devantler committed Sep 24, 2023
1 parent 699323e commit 171b809
Show file tree
Hide file tree
Showing 5 changed files with 162 additions and 150 deletions.
4 changes: 2 additions & 2 deletions api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default async (req, res) => {
number_format,
border_color,
rank_icon,
show_total_reviews,
show,
} = req.query;
res.setHeader("Content-Type", "image/svg+xml");

Expand Down Expand Up @@ -96,7 +96,7 @@ export default async (req, res) => {
locale: locale ? locale.toLowerCase() : null,
disable_animations: parseBoolean(disable_animations),
rank_icon,
show_total_reviews: parseBoolean(show_total_reviews),
show: parseArray(show),
}),
);
} catch (err) {
Expand Down
Loading

0 comments on commit 171b809

Please sign in to comment.