From 966d1ad67b35f38710ea7c306e76a274cc44c93a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20Fr=C3=B6hle?= Date: Mon, 17 Dec 2018 21:02:11 +0100 Subject: [PATCH] v2 up 9agfiu09au --- dist/autoloader.js | 2 +- dist/autoloaderV2.js | 19 +++++++++++++++++-- src/autoloaderV2.js | 17 ++++++++++++++++- 3 files changed, 34 insertions(+), 4 deletions(-) diff --git a/dist/autoloader.js b/dist/autoloader.js index 1ecff0d..9f5819b 100755 --- a/dist/autoloader.js +++ b/dist/autoloader.js @@ -1,4 +1,4 @@ -/*Generated on:Mon Dec 17 2018 20:57:14 GMT+0100 (CET)*/ +/*Generated on:Mon Dec 17 2018 21:02:10 GMT+0100 (CET)*/ var AutomaticDispose_Branch = "master"; var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/"; var da_lss_adis_time = new Date().getTime(); diff --git a/dist/autoloaderV2.js b/dist/autoloaderV2.js index e216090..748bbe0 100644 --- a/dist/autoloaderV2.js +++ b/dist/autoloaderV2.js @@ -1,4 +1,4 @@ -/*Generated on:Mon Dec 17 2018 20:57:14 GMT+0100 (CET)*/ +/*Generated on:Mon Dec 17 2018 21:02:10 GMT+0100 (CET)*/ /* * Dexie.js - a minimalistic wrapper for IndexedDB * =============================================== @@ -18731,6 +18731,21 @@ class AutomaticDispose { return self.ADisDB.transaction('rw', [self.ADisDB.ADisMissions, self.ADisDB.ADisAvailabelMissions], () => { self.ADSettings().then((setting) => { + if (setting[setOpt] == 'true') { + let where = { + missionID: self.MissionID, + runner: self.MyRunner, + done: 'false' + } + var coll = self.ADisDB.ADisMissions.where(where) + if (self.MyRunner != "kt") { + coll = coll.and(function (item) { + return item.next_check <= Math.floor(new Date().getTime() / 1000) + }); + } + return coll.toArray() + } + /* if (setting[runnerSettings] == 'true') { return self.ADisDB.ADisMissions.where({ runner: Runner, @@ -18739,7 +18754,7 @@ class AutomaticDispose { }).and(function (item) { return item.next_check <= Math.floor(new Date().getTime() / 1000) }).toArray() - } + }*/ }).then((Wunsche) => { if (typeof Wunsche === "undefined") { return setTimeout(self.OpenNextMission.bind(self), 1000, Runner); diff --git a/src/autoloaderV2.js b/src/autoloaderV2.js index 796f217..9dbbe1e 100644 --- a/src/autoloaderV2.js +++ b/src/autoloaderV2.js @@ -1071,6 +1071,21 @@ class AutomaticDispose { return self.ADisDB.transaction('rw', [self.ADisDB.ADisMissions, self.ADisDB.ADisAvailabelMissions], () => { self.ADSettings().then((setting) => { + if (setting[setOpt] == 'true') { + let where = { + missionID: self.MissionID, + runner: self.MyRunner, + done: 'false' + } + var coll = self.ADisDB.ADisMissions.where(where) + if (self.MyRunner != "kt") { + coll = coll.and(function (item) { + return item.next_check <= Math.floor(new Date().getTime() / 1000) + }); + } + return coll.toArray() + } + /* if (setting[runnerSettings] == 'true') { return self.ADisDB.ADisMissions.where({ runner: Runner, @@ -1079,7 +1094,7 @@ class AutomaticDispose { }).and(function (item) { return item.next_check <= Math.floor(new Date().getTime() / 1000) }).toArray() - } + }*/ }).then((Wunsche) => { if (typeof Wunsche === "undefined") { return setTimeout(self.OpenNextMission.bind(self), 1000, Runner);