Queue multiple offline Week-to-Today pulls #1250

Merged
rockachopa merged 9 commits from timmy/1249-queue-offline-week-pulls into main 2026-08-22 04:52:49 +00:00
Showing only changes of commit f76b2f8289 - Show all commits

View File

@ -529,8 +529,7 @@ function createWeekPlan({fetchJson,localDate,timeZone,storage,getLogin,now=()=>D
}
function flushPull() {
if(pulling)return pulling;
const record=pendingPull(),key=pullKey();
if(!record||!key)return Promise.resolve(false);
if(!pendingPull()||!pullKey())return Promise.resolve(false);
pulling=(async()=>{
let result,lastResult=false;
while(pendingPull()){