fix(plugins/wakatime): plugin_wakatime_days not correctly supported
This commit is contained in:
@@ -20,6 +20,7 @@ export default async function({login, q, imports, data, account}, {enabled = fal
|
|||||||
"180": "last_6_months",
|
"180": "last_6_months",
|
||||||
"365": "last_year",
|
"365": "last_year",
|
||||||
}[days] ?? "last_7_days"
|
}[days] ?? "last_7_days"
|
||||||
|
console.debug(`metrics/compute/${login}/plugins > wakatime > range: ${range}`)
|
||||||
|
|
||||||
//Querying api and format result (https://wakatime.com/developers#stats)
|
//Querying api and format result (https://wakatime.com/developers#stats)
|
||||||
console.debug(`metrics/compute/${login}/plugins > wakatime > querying api`)
|
console.debug(`metrics/compute/${login}/plugins > wakatime > querying api`)
|
||||||
|
|||||||
@@ -73,10 +73,10 @@ inputs:
|
|||||||
Time range
|
Time range
|
||||||
type: string
|
type: string
|
||||||
values:
|
values:
|
||||||
- 7
|
- "7"
|
||||||
- 30
|
- "30"
|
||||||
- 180
|
- "180"
|
||||||
- 365
|
- "365"
|
||||||
default: 7
|
default: 7
|
||||||
|
|
||||||
plugin_wakatime_limit:
|
plugin_wakatime_limit:
|
||||||
|
|||||||
Reference in New Issue
Block a user