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 HackingGate committed Jun 25, 2023
1 parent c1653f8 commit 1cbfabe
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 1cbfabe

Please sign in to comment.