Slop cleanup

This commit is contained in:
2026-05-28 09:31:20 +02:00
parent f56492fb70
commit 18a767f697
47 changed files with 6376 additions and 1120 deletions
@@ -16,7 +16,7 @@ const Timetable: React.FC<TimetableProps> = ({ from_date, to_date, day_start, da
const start = new Date(from_date + 'T00:00:00');
const end = new Date(to_date + 'T23:59:59');
const result: string[] = [];
let current = new Date(start);
const current = new Date(start);
while (current <= end) {
result.push(current.toLocaleDateString('en-CA'));
current.setDate(current.getDate() + 1);
@@ -47,8 +47,8 @@ const Timetable: React.FC<TimetableProps> = ({ from_date, to_date, day_start, da
return timetable.slots.some((slot) => {
if (slot.date !== date || !slot.sleeping) return false;
let sStart = timeToMinutes(slot.slot_start);
let sEnd = timeToMinutes(slot.slot_end);
const sStart = timeToMinutes(slot.slot_start);
const sEnd = timeToMinutes(slot.slot_end);
if (sEnd <= sStart) {
// Handle wrap-around within a single slot if it happens (though unlikely for 15m segments)