In-Progress streak count

This commit is contained in:
Michael 2024-12-23 18:41:44 -06:00
parent 9cc61613a7
commit e813f39ab2
Signed by: TheShadowEevee
GPG key ID: 7A8AA92B3BAFAB75

View file

@ -146,6 +146,7 @@ module.exports = {
}; };
const allDays = []; const allDays = [];
const dayMap = new Map();
let currentDate = startDate; let currentDate = startDate;
while (currentDate <= endDate) { while (currentDate <= endDate) {
@ -165,11 +166,19 @@ module.exports = {
const formattedDay = monthName + ' ' + day.getDate().toString(); const formattedDay = monthName + ' ' + day.getDate().toString();
if (!validDays.includes(formattedDay)) { if (validDays.includes(formattedDay)) {
dayMap.set(formattedDay, true);
}
else {
invalidString += `${formattedDay}\n`; invalidString += `${formattedDay}\n`;
dayMap.set(formattedDay, false);
} }
} }
//for (const [day, hasCommit] of dayMap) {
//}
if (invalidString != '') { if (invalidString != '') {
resultsEmbed.fields.push( resultsEmbed.fields.push(
{ {