Version 1.9 (#6)

This commit is contained in:
Simon Lecoq
2020-10-20 00:19:58 +02:00
committed by GitHub
parent 047d8630e6
commit f21273172d
23 changed files with 454 additions and 860 deletions

View File

@@ -5,7 +5,8 @@
return computed.plugins.habits = null
if (!q.habits)
return computed.plugins.habits = null
console.debug(`metrics/plugins/habits/${login} > started`)
console.debug(`metrics/compute/${login}/plugins > habits`)
computed.svg.height += 70
//Plugin execution
pending.push(new Promise(async solve => {
@@ -44,12 +45,14 @@
}
//Save results
computed.plugins.habits = habits
console.debug(`metrics/plugins/habits/${login} > ${JSON.stringify(computed.plugins.habits)}`)
console.debug(`metrics/compute/${login}/plugins > habits > success`)
console.debug(JSON.stringify(computed.plugins.habits))
solve()
}
catch (error) {
//Generic error
computed.plugins.habits = {error:`An error occured`}
console.debug(`metrics/compute/${login}/plugins > habits > error`)
console.debug(error)
solve()
}