Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
1f9543909a
|
|||
|
b4118f7b25
|
@@ -24,6 +24,8 @@ export default async function getAnnouncements(dates: string[]): Promise<Announc
|
||||
|
||||
const url = new URL(`/v1/announcements/${dates.join(",")}`, API_BASE_URL).toString();
|
||||
|
||||
console.log("URL", url)
|
||||
|
||||
try {
|
||||
const response = await fetch(url);
|
||||
const data = await response.json();
|
||||
|
||||
+1
-1
@@ -130,7 +130,7 @@ export default async function parseV3(workbook: Workbook, downloadedFilePath: st
|
||||
const schedule: any = {};
|
||||
|
||||
for (const { dateKey, sheet } of resolvedDays) {
|
||||
const { changes, absence, inWork, takesPlace, reservedRooms } = extractDaySchedule(sheet, teacherMap, themeColors, annoucements[dateKey].map(a => a.flags).flat());
|
||||
const { changes, absence, inWork, takesPlace, reservedRooms } = extractDaySchedule(sheet, teacherMap, themeColors, annoucements[dateKey]?.map(a => a.flags)?.flat() || []);
|
||||
|
||||
schedule[dateKey] = {
|
||||
info: { inWork },
|
||||
|
||||
Reference in New Issue
Block a user