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

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

* dev

* docs: improve documentation

---------

Co-authored-by: rickstaa <rick.staa@outlook.com>
This commit is contained in:
Alexandr Garbuzovandrickstaa authored and GitHub committed 2023-06-17 23:10:13 +03:00
1 parent 6cbb08e218
commit b70b089b8e
5 files changed
+162 -150

No files matched your search

+2 -2
View File
@@ -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");
@@ -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) {