Skip to content

Commit

Permalink
fix remaining & add more info
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisnaadhi committed Apr 23, 2024
1 parent 4d76fb3 commit 2436fc2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/buildItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export default async function buildItems(prodi: string) {
);
}

const remaining = fetchGroupData.total - (getIndexPage * Number(limit));
const remaining = fetchGroupData.total - (Number(page) * Number(limit));

console.log(
'Seluruh Data Berhasil diambil, silahkan cek folder %c"' + folderName +
Expand Down Expand Up @@ -302,5 +302,11 @@ export default async function buildItems(prodi: string) {
"color:white",
"color: red; font-weight: bold",
);
console.log(
`Total Data di Prodi %c${getNamaProdi()?.programStudi}%c: %c${fetchGroupData.total}`,
"color: green",
"color: white",
"color: yellow",
);
console.log(`%cTersisa : "${remaining}" yang perlu diunduh!`, "color: green");
}

0 comments on commit 2436fc2

Please sign in to comment.