mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-09-03 02:20:04 +00:00
feat: allow to customize wakatime range (#874)
* chore: allow to customize wakatime data range * docs: document wakatime range parameter docs: add wakatime section to german readme Co-authored-by: Anurag Hazra <hazru.anurag@gmail.com>
This commit is contained in:
co-authored by
Anurag Hazra
parent
922f7165cb
commit
24e5f866c0
+2
-1
@@ -26,6 +26,7 @@ module.exports = async (req, res) => {
|
||||
locale,
|
||||
layout,
|
||||
api_domain,
|
||||
range,
|
||||
border_radius,
|
||||
} = req.query;
|
||||
|
||||
@@ -36,7 +37,7 @@ module.exports = async (req, res) => {
|
||||
}
|
||||
|
||||
try {
|
||||
const stats = await fetchWakatimeStats({ username, api_domain });
|
||||
const stats = await fetchWakatimeStats({ username, api_domain, range });
|
||||
|
||||
let cacheSeconds = clampValue(
|
||||
parseInt(cache_seconds || CONSTANTS.TWO_HOURS, 10),
|
||||
|
||||
Reference in New Issue
Block a user