v2 ia9gaugfi

This commit is contained in:
2018-12-17 18:43:22 +01:00
parent a6ffa303a2
commit f7886678c4
3 changed files with 38 additions and 28 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
/*Generated on:Mon Dec 17 2018 18:39:49 GMT+0100 (CET)*/ /*Generated on:Mon Dec 17 2018 18:43:22 GMT+0100 (CET)*/
var AutomaticDispose_Branch = "master"; var AutomaticDispose_Branch = "master";
var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/"; var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/";
var da_lss_adis_time = new Date().getTime(); var da_lss_adis_time = new Date().getTime();
+19 -14
View File
@@ -1,4 +1,4 @@
/*Generated on:Mon Dec 17 2018 18:39:49 GMT+0100 (CET)*/ /*Generated on:Mon Dec 17 2018 18:43:22 GMT+0100 (CET)*/
/* /*
* Dexie.js - a minimalistic wrapper for IndexedDB * Dexie.js - a minimalistic wrapper for IndexedDB
* =============================================== * ===============================================
@@ -18751,24 +18751,29 @@ class AutomaticDispose {
const runnerIframe = self.ADisSettings.runner_iframes[runnerID]; const runnerIframe = self.ADisSettings.runner_iframes[runnerID];
const runnerSettings = self.ADisSettings.runner_settings[runnerID]; const runnerSettings = self.ADisSettings.runner_settings[runnerID];
console.table({ // console.table({
Runner: Runner, // Runner: Runner,
runnerID: runnerID, // runnerID: runnerID,
runnerSettings: runnerSettings, // runnerSettings: runnerSettings,
runnerIframeName: runnerIframeName, // runnerIframeName: runnerIframeName,
runnerIframe:runnerIframe // runnerIframe: runnerIframe
}) // })
return self.ADisDB.transaction('rw', [self.ADisDB.ADisMissions, self.ADisDB.ADisAvailabelMissions], () => { return self.ADisDB.transaction('rw', [self.ADisDB.ADisMissions, self.ADisDB.ADisAvailabelMissions], () => {
self.ADSettings().then((setting) => { self.ADSettings().then((setting) => {
if (setting[runnerSettings] == 'true') { if (setting[runnerSettings] == 'true') {
return self.ADisDB.ADisMissions.where({ let coll = self.ADisDB.ADisMissions.where({
runner: Runner, runner: Runner,
available: 'true', available: 'true',
done: 'false' done: 'false'
}).and(function (item) { })
return item.next_check <= Math.floor(new Date().getTime() / 1000) if (self.MyRunner != "kt") {
}).toArray() coll = coll.and(function (item) {
return item.next_check <= Math.floor(new Date().getTime() / 1000)
});
}
return coll.toArray()
} }
}).then((Wunsche) => { }).then((Wunsche) => {
if (typeof Wunsche === "undefined") { if (typeof Wunsche === "undefined") {
@@ -18779,8 +18784,8 @@ class AutomaticDispose {
}); });
//console.log("TIME:", Math.floor(new Date().getTime() / 1000)) //console.log("TIME:", Math.floor(new Date().getTime() / 1000))
if (Runner == 'kt') { if (Runner == 'kt') {
console.table(Wunsche); console.table(Wunsche);
} }
if (Wunsche.length > 0) { if (Wunsche.length > 0) {
let myWunsch = Wunsche[0]; let myWunsch = Wunsche[0];
// console.log("MYWUNSCH:") // console.log("MYWUNSCH:")
+18 -13
View File
@@ -1091,24 +1091,29 @@ class AutomaticDispose {
const runnerIframe = self.ADisSettings.runner_iframes[runnerID]; const runnerIframe = self.ADisSettings.runner_iframes[runnerID];
const runnerSettings = self.ADisSettings.runner_settings[runnerID]; const runnerSettings = self.ADisSettings.runner_settings[runnerID];
console.table({ // console.table({
Runner: Runner, // Runner: Runner,
runnerID: runnerID, // runnerID: runnerID,
runnerSettings: runnerSettings, // runnerSettings: runnerSettings,
runnerIframeName: runnerIframeName, // runnerIframeName: runnerIframeName,
runnerIframe:runnerIframe // runnerIframe: runnerIframe
}) // })
return self.ADisDB.transaction('rw', [self.ADisDB.ADisMissions, self.ADisDB.ADisAvailabelMissions], () => { return self.ADisDB.transaction('rw', [self.ADisDB.ADisMissions, self.ADisDB.ADisAvailabelMissions], () => {
self.ADSettings().then((setting) => { self.ADSettings().then((setting) => {
if (setting[runnerSettings] == 'true') { if (setting[runnerSettings] == 'true') {
return self.ADisDB.ADisMissions.where({ let coll = self.ADisDB.ADisMissions.where({
runner: Runner, runner: Runner,
available: 'true', available: 'true',
done: 'false' done: 'false'
}).and(function (item) { })
return item.next_check <= Math.floor(new Date().getTime() / 1000) if (self.MyRunner != "kt") {
}).toArray() coll = coll.and(function (item) {
return item.next_check <= Math.floor(new Date().getTime() / 1000)
});
}
return coll.toArray()
} }
}).then((Wunsche) => { }).then((Wunsche) => {
if (typeof Wunsche === "undefined") { if (typeof Wunsche === "undefined") {
@@ -1119,8 +1124,8 @@ class AutomaticDispose {
}); });
//console.log("TIME:", Math.floor(new Date().getTime() / 1000)) //console.log("TIME:", Math.floor(new Date().getTime() / 1000))
if (Runner == 'kt') { if (Runner == 'kt') {
console.table(Wunsche); console.table(Wunsche);
} }
if (Wunsche.length > 0) { if (Wunsche.length > 0) {
let myWunsch = Wunsche[0]; let myWunsch = Wunsche[0];
// console.log("MYWUNSCH:") // console.log("MYWUNSCH:")