fix(plugins/wakatime): plugin_wakatime_days not correctly supported

This commit is contained in:
lowlighter
2022-08-14 12:36:18 -04:00
parent 8178a98b21
commit 7b831c1cf0
2 changed files with 5 additions and 4 deletions

View File

@@ -20,6 +20,7 @@ export default async function({login, q, imports, data, account}, {enabled = fal
"180": "last_6_months",
"365": "last_year",
}[days] ?? "last_7_days"
console.debug(`metrics/compute/${login}/plugins > wakatime > range: ${range}`)
//Querying api and format result (https://wakatime.com/developers#stats)
console.debug(`metrics/compute/${login}/plugins > wakatime > querying api`)

View File

@@ -73,10 +73,10 @@ inputs:
Time range
type: string
values:
- 7
- 30
- 180
- 365
- "7"
- "30"
- "180"
- "365"
default: 7
plugin_wakatime_limit: