Skip to content

Commit

Permalink
[Stats] Fix order (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
DirtyRacer1337 authored Oct 3, 2024
1 parent bd70f0b commit 71d2a99
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions plugins/stats/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

// percentage helper
const percentage = (portion, total) =>
(total > 0 ? ((portion / total) * 100).toFixed(2) : 0) + "%";
(total > 0 ? (portion / total) * 100 : 0).toFixed(2) + "%";

// *** actual stats fetching ***
// performer of scenes with any StashID
Expand Down Expand Up @@ -181,7 +181,7 @@
"div.container-fluid div.mt-5",
setupStats
);
function setupStats(el) {
async function setupStats(el) {
if (document.querySelector(".custom-stats-row")) return;
const changelog = el.querySelector("div.changelog");
const rowOne = document.createElement("div");
Expand All @@ -190,16 +190,16 @@
const rowTwo = rowOne.cloneNode();
el.insertBefore(rowTwo, changelog);
// row one
createSceneStashIDPct(rowOne);
createStudioStashIDPct(rowOne);
createPerformerStashIDPct(rowOne);
createPerformerFavorites(rowOne);
createMarkersStat(rowOne);
await createSceneStashIDPct(rowOne);
await createStudioStashIDPct(rowOne);
await createPerformerStashIDPct(rowOne);
await createPerformerFavorites(rowOne);
await createMarkersStat(rowOne);
// row two
createTagHasImage(rowTwo);
createStudioHasimage(rowTwo);
createPerformerHasImage(rowTwo);
createMovieHasCover(rowTwo);
createSceneOverWebHD(rowTwo);
await createTagHasImage(rowTwo);
await createStudioHasimage(rowTwo);
await createPerformerHasImage(rowTwo);
await createMovieHasCover(rowTwo);
await createSceneOverWebHD(rowTwo);
}
})();

0 comments on commit 71d2a99

Please sign in to comment.