Skip to content

Commit b70b089

Browse files
qwerty541rickstaa
andauthored
Stats card: migrate from show_total_reviews to show option (resolves anuraghazra#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]>
1 parent 6cbb08e commit b70b089

File tree

5 files changed

+162
-150
lines changed

5 files changed

+162
-150
lines changed

Diff for: api/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default async (req, res) => {
3737
number_format,
3838
border_color,
3939
rank_icon,
40-
show_total_reviews,
40+
show,
4141
} = req.query;
4242
res.setHeader("Content-Type", "image/svg+xml");
4343

@@ -96,7 +96,7 @@ export default async (req, res) => {
9696
locale: locale ? locale.toLowerCase() : null,
9797
disable_animations: parseBoolean(disable_animations),
9898
rank_icon,
99-
show_total_reviews: parseBoolean(show_total_reviews),
99+
show: parseArray(show),
100100
}),
101101
);
102102
} catch (err) {

0 commit comments

Comments
 (0)