mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-05-21 00:24:15 +00:00
feat: added "exclude_repo" option to Top Langs (#493)
* 🚀 Added "exclude_repo" option to Top Langs * chore: code style update Co-authored-by: Anurag <hazru.anurag@gmail.com>
This commit is contained in:
+6
-1
@@ -24,6 +24,7 @@ module.exports = async (req, res) => {
|
||||
cache_seconds,
|
||||
layout,
|
||||
langs_count,
|
||||
exclude_repo,
|
||||
} = req.query;
|
||||
let topLangs;
|
||||
|
||||
@@ -34,7 +35,11 @@ module.exports = async (req, res) => {
|
||||
}
|
||||
|
||||
try {
|
||||
topLangs = await fetchTopLanguages(username, langs_count);
|
||||
topLangs = await fetchTopLanguages(
|
||||
username,
|
||||
langs_count,
|
||||
parseArray(exclude_repo),
|
||||
);
|
||||
|
||||
const cacheSeconds = clampValue(
|
||||
parseInt(cache_seconds || CONSTANTS.TWO_HOURS, 10),
|
||||
|
||||
Reference in New Issue
Block a user