Compare commits

..

No commits in common. "803d64c78caa570d31d6055e70e2d2af6834f04b" and "b7a53960e5f37ae089d77bc11668d917145e2abb" have entirely different histories.

5 changed files with 30 additions and 71 deletions

View File

@ -153,7 +153,7 @@
onMount(async () => {
toast.loading($_("loading-cards"));
let page = 0;
let pagesize = 500;
let pagesize = 100;
while (page >= 0) {
const cards = await RunnerCardService.runnerCardControllerGetAll(
page,
@ -171,6 +171,7 @@
dataLoaded = true;
page++;
pagesize += 100;
}
toast.dismiss();
toast.success($_("all-cards-loaded"));

View File

@ -167,26 +167,13 @@
}
onMount(async () => {
let page = 0;
let pagesize = 300;
while (page >= 0) {
const donations = await DonationService.donationControllerGetAll(
page,
pagesize
);
if (donations.length == 0) {
page = -2;
}
current_donations = current_donations.concat(...donations);
const donations = await DonationService.donationControllerGetAll();
current_donations = donations;
options.update((options) => ({
...options,
data: current_donations,
}));
dataLoaded = true;
page++;
}
});
</script>

View File

@ -146,23 +146,13 @@
}
onMount(async () => {
let page = 0;
let pagesize = 300;
while (page >= 0) {
const donors = await DonorService.donorControllerGetAll(page, pagesize);
if (donors.length == 0) {
page = -2;
}
current_donors = current_donors.concat(...donors);
const donors = await DonorService.donorControllerGetAll();
current_donors = donors;
options.update((options) => ({
...options,
data: current_donors,
data: donors,
}));
dataLoaded = true;
page++;
}
});
</script>

View File

@ -161,22 +161,13 @@
}
);
let page = 0;
while (page >= 0) {
const runners = await RunnerService.runnerControllerGetAll(page, 500);
if (runners.length == 0) {
page = -2;
}
current_runners = current_runners.concat(...runners);
const runners = await RunnerService.runnerControllerGetAll();
current_runners = runners;
options.update((options) => ({
...options,
data: current_runners,
}));
dataLoaded = true;
page++;
}
});
</script>

View File

@ -178,23 +178,13 @@
}
onMount(async () => {
let page = 0;
let pagesize = 500;
while (page >= 0) {
const scans = await ScanService.scanControllerGetAll(page, pagesize);
if (scans.length == 0) {
page = -2;
}
current_scans = current_scans.concat(...scans);
const scans = await ScanService.scanControllerGetAll();
current_scans = scans;
options.update((options) => ({
...options,
data: current_scans,
}));
dataLoaded = true;
page++;
}
});
</script>