v2 ia9gaugfi
This commit is contained in:
Vendored
+1
-1
@@ -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();
|
||||||
|
|||||||
Vendored
+16
-11
@@ -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) {
|
})
|
||||||
|
if (self.MyRunner != "kt") {
|
||||||
|
coll = coll.and(function (item) {
|
||||||
return item.next_check <= Math.floor(new Date().getTime() / 1000)
|
return item.next_check <= Math.floor(new Date().getTime() / 1000)
|
||||||
}).toArray()
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return coll.toArray()
|
||||||
}
|
}
|
||||||
}).then((Wunsche) => {
|
}).then((Wunsche) => {
|
||||||
if (typeof Wunsche === "undefined") {
|
if (typeof Wunsche === "undefined") {
|
||||||
|
|||||||
+15
-10
@@ -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) {
|
})
|
||||||
|
if (self.MyRunner != "kt") {
|
||||||
|
coll = coll.and(function (item) {
|
||||||
return item.next_check <= Math.floor(new Date().getTime() / 1000)
|
return item.next_check <= Math.floor(new Date().getTime() / 1000)
|
||||||
}).toArray()
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return coll.toArray()
|
||||||
}
|
}
|
||||||
}).then((Wunsche) => {
|
}).then((Wunsche) => {
|
||||||
if (typeof Wunsche === "undefined") {
|
if (typeof Wunsche === "undefined") {
|
||||||
|
|||||||
Reference in New Issue
Block a user