In-Progress streak count
This commit is contained in:
parent
9cc61613a7
commit
e813f39ab2
1 changed files with 10 additions and 1 deletions
|
@ -146,6 +146,7 @@ module.exports = {
|
|||
};
|
||||
|
||||
const allDays = [];
|
||||
const dayMap = new Map();
|
||||
|
||||
let currentDate = startDate;
|
||||
while (currentDate <= endDate) {
|
||||
|
@ -165,11 +166,19 @@ module.exports = {
|
|||
|
||||
const formattedDay = monthName + ' ' + day.getDate().toString();
|
||||
|
||||
if (!validDays.includes(formattedDay)) {
|
||||
if (validDays.includes(formattedDay)) {
|
||||
dayMap.set(formattedDay, true);
|
||||
}
|
||||
else {
|
||||
invalidString += `${formattedDay}\n`;
|
||||
dayMap.set(formattedDay, false);
|
||||
}
|
||||
}
|
||||
|
||||
//for (const [day, hasCommit] of dayMap) {
|
||||
|
||||
//}
|
||||
|
||||
if (invalidString != '') {
|
||||
resultsEmbed.fields.push(
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue