corrected database structure
This commit is contained in:
20
index.js
20
index.js
@@ -660,25 +660,5 @@ function init(sqlite3){
|
||||
global_component = new Filter(new db_handler(sqlite3));
|
||||
chart = new Chart(new db_handler(sqlite3));
|
||||
queue_filter = new FilterQueue(new db_handler(sqlite3));
|
||||
|
||||
Handlebars.registerHelper('range', function(start, end) {
|
||||
let result = [];
|
||||
for (let i = start; i < end; i++) {
|
||||
result.push(i);
|
||||
}
|
||||
return result;
|
||||
});
|
||||
|
||||
Handlebars.registerHelper('maxLength', function(arrays) {
|
||||
var len = Math.max(...arrays.map(array => array.length));
|
||||
console.log(len);
|
||||
return len;
|
||||
});
|
||||
|
||||
Handlebars.registerHelper("setVar", function(varName, varValue, options) {
|
||||
options.data.root[varName] = varValue;
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user