Skip to content

Commit

Permalink
Update create-calendar.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjswan authored May 21, 2024
1 parent 2b504e4 commit d0edcb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion create-calendar.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,15 @@ export default function createCalendar(raw, name)

for (let i = 0; i < hours.length;)
{
const hour = hours[i]

const status = dayScedule[hour]
if (status == "yes")
{
i++;
continue;
}

const hour = hours[i]
const start = day.plus({hours: Number(hour) - 1})
while (dayScedule[hours[i]] === status)
{
Expand Down

0 comments on commit d0edcb5

Please sign in to comment.