forked from MapComplete/MapComplete
Fix: fix tests and wrong category
This commit is contained in:
parent
9cabc83a8e
commit
f942529755
3 changed files with 3 additions and 3 deletions
|
|
@ -975,7 +975,7 @@ changes // => [[36000,61200], ["10:00", "17:00"]]
|
||||||
* @param changeHourText
|
* @param changeHourText
|
||||||
* @param maxDiff minimum required seconds between two items to be in the same group
|
* @param maxDiff minimum required seconds between two items to be in the same group
|
||||||
*
|
*
|
||||||
* OH.partitionOHForDistance([0, 15, 3615], ["start", "15s", "1h15s"]) // => [{changeHours: [0, 3615], changeTexts: ["start", "1h15s"]}, {changeHours: [15], changeTexts: ["15s"]}]
|
* OH.partitionOHForDistance([0, 15, 5415], ["start", "15s", "1h15s"]) // => [{changeHours: [0, 5415], changeTexts: ["start", "1h15s"]}, {changeHours: [15], changeTexts: ["15s"]}]
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public static partitionOHForDistance(changeHours: number[], changeHourText: string[], maxDiff = 5400): {
|
public static partitionOHForDistance(changeHours: number[], changeHourText: string[], maxDiff = 5400): {
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ export default class AutoApplyButtonVis implements SpecialVisualizationSvelte {
|
||||||
public readonly docs: string
|
public readonly docs: string
|
||||||
public readonly funcName: string = "auto_apply"
|
public readonly funcName: string = "auto_apply"
|
||||||
public readonly needsUrls = []
|
public readonly needsUrls = []
|
||||||
public readonly group = "import"
|
public readonly group = "data_import"
|
||||||
public readonly args: {
|
public readonly args: {
|
||||||
name: string
|
name: string
|
||||||
defaultValue?: string
|
defaultValue?: string
|
||||||
|
|
|
||||||
|
|
@ -146,7 +146,7 @@ export default class SpecialVisualizations {
|
||||||
throw (
|
throw (
|
||||||
"\n\n >>>> ERROR <<<< Unknown visualisation group type: " +
|
"\n\n >>>> ERROR <<<< Unknown visualisation group type: " +
|
||||||
viz.group +
|
viz.group +
|
||||||
"\n\n\n"
|
" (used by " + viz.funcName + ")\n\n\n"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
helpTexts.push(groupExplanations[viz.group])
|
helpTexts.push(groupExplanations[viz.group])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue