v2 up dua8

This commit is contained in:
2018-12-17 19:52:24 +01:00
parent 94efbc9bad
commit ad2c6bae21
3 changed files with 18 additions and 14 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
/*Generated on:Mon Dec 17 2018 19:42:35 GMT+0100 (CET)*/ /*Generated on:Mon Dec 17 2018 19:52:23 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();
+8 -6
View File
@@ -1,4 +1,4 @@
/*Generated on:Mon Dec 17 2018 19:42:35 GMT+0100 (CET)*/ /*Generated on:Mon Dec 17 2018 19:52:23 GMT+0100 (CET)*/
/* /*
* Dexie.js - a minimalistic wrapper for IndexedDB * Dexie.js - a minimalistic wrapper for IndexedDB
* =============================================== * ===============================================
@@ -18724,7 +18724,7 @@ class AutomaticDispose {
const runnerIframe = self.ADisSettings.runner_iframes[runnerID]; const runnerIframe = self.ADisSettings.runner_iframes[runnerID];
$('#' + runnerIframe).attr("src", ''); $('#' + runnerIframe).attr("src", '');
$('#' + runnerIframe).attr("mission_id", 'empty'); $('#' + runnerIframe).attr("mission_id", 'empty');
setTimeout(self.OpenNextMission.bind(self), 500, Runner); setTimeout(self.OpenNextMission.bind(self), 1000, Runner);
} }
UpdateMissionsToDone(MissionID) { UpdateMissionsToDone(MissionID) {
@@ -18769,17 +18769,17 @@ class AutomaticDispose {
available: 'true', available: 'true',
done: 'false' done: 'false'
}) })
if (self.MyRunner != "kt") { //if (self.MyRunner != "kt") {
coll = coll.and(function (item) { 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)
}); });
} //}
return coll.toArray() return coll.toArray()
} }
}).then((Wunsche) => { }).then((Wunsche) => {
if (typeof Wunsche === "undefined") { if (typeof Wunsche === "undefined") {
return setTimeout(self.OpenNextMission.bind(self), 500, Runner); return setTimeout(self.OpenNextMission.bind(self), 1000, Runner);
} }
Wunsche.sort((a, b) => { Wunsche.sort((a, b) => {
return a.next_check - b.next_check; return a.next_check - b.next_check;
@@ -18867,8 +18867,10 @@ class AutomaticDispose {
if (count > 0) { if (count > 0) {
return Wunsch.each((mywunsch) => { return Wunsch.each((mywunsch) => {
self.MissionData = mywunsch; self.MissionData = mywunsch;
return self.UpdateMissionsToDone(self.MissionID).then(() => {
return self.MainHandler() return self.MainHandler()
}); });
});
} else { } else {
//return self.RemoveMissionsFromQueue(self.MissionID).then(() => { //return self.RemoveMissionsFromQueue(self.MissionID).then(() => {
return self.UpdateMissionsToDone(self.MissionID).then(() => { return self.UpdateMissionsToDone(self.MissionID).then(() => {
@@ -18885,7 +18887,7 @@ class AutomaticDispose {
}) })
}) })
} }
}, 1500); }, 100);
} }
+7 -5
View File
@@ -1064,7 +1064,7 @@ class AutomaticDispose {
const runnerIframe = self.ADisSettings.runner_iframes[runnerID]; const runnerIframe = self.ADisSettings.runner_iframes[runnerID];
$('#' + runnerIframe).attr("src", ''); $('#' + runnerIframe).attr("src", '');
$('#' + runnerIframe).attr("mission_id", 'empty'); $('#' + runnerIframe).attr("mission_id", 'empty');
setTimeout(self.OpenNextMission.bind(self), 500, Runner); setTimeout(self.OpenNextMission.bind(self), 1000, Runner);
} }
UpdateMissionsToDone(MissionID) { UpdateMissionsToDone(MissionID) {
@@ -1109,17 +1109,17 @@ class AutomaticDispose {
available: 'true', available: 'true',
done: 'false' done: 'false'
}) })
if (self.MyRunner != "kt") { //if (self.MyRunner != "kt") {
coll = coll.and(function (item) { 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)
}); });
} //}
return coll.toArray() return coll.toArray()
} }
}).then((Wunsche) => { }).then((Wunsche) => {
if (typeof Wunsche === "undefined") { if (typeof Wunsche === "undefined") {
return setTimeout(self.OpenNextMission.bind(self), 500, Runner); return setTimeout(self.OpenNextMission.bind(self), 1000, Runner);
} }
Wunsche.sort((a, b) => { Wunsche.sort((a, b) => {
return a.next_check - b.next_check; return a.next_check - b.next_check;
@@ -1207,8 +1207,10 @@ class AutomaticDispose {
if (count > 0) { if (count > 0) {
return Wunsch.each((mywunsch) => { return Wunsch.each((mywunsch) => {
self.MissionData = mywunsch; self.MissionData = mywunsch;
return self.UpdateMissionsToDone(self.MissionID).then(() => {
return self.MainHandler() return self.MainHandler()
}); });
});
} else { } else {
//return self.RemoveMissionsFromQueue(self.MissionID).then(() => { //return self.RemoveMissionsFromQueue(self.MissionID).then(() => {
return self.UpdateMissionsToDone(self.MissionID).then(() => { return self.UpdateMissionsToDone(self.MissionID).then(() => {
@@ -1225,7 +1227,7 @@ class AutomaticDispose {
}) })
}) })
} }
}, 1500); }, 100);
} }