diff --git a/frontend/src/Editor.svelte b/frontend/src/Editor.svelte
index 4dd4793..112a4f8 100644
--- a/frontend/src/Editor.svelte
+++ b/frontend/src/Editor.svelte
@@ -191,7 +191,7 @@
return;
}
const y = prompt("Který ročník (číslo 26...X)");
- await refreshTaskStatuses([`${y}-Z1-1`]);
+ await refreshTaskStatuses();
const newTasks = Array.from($taskStatuses.values()).filter(
(t) =>
t.id.startsWith(y + "-") &&
diff --git a/frontend/src/Odevzdavatko.svelte b/frontend/src/Odevzdavatko.svelte
index cb1af5e..0d39990 100644
--- a/frontend/src/Odevzdavatko.svelte
+++ b/frontend/src/Odevzdavatko.svelte
@@ -1,7 +1,6 @@
{#if data == null && err == null}
diff --git a/frontend/src/ksp-submit-api.ts b/frontend/src/ksp-submit-api.ts
index d255703..5d718aa 100644
--- a/frontend/src/ksp-submit-api.ts
+++ b/frontend/src/ksp-submit-api.ts
@@ -1,4 +1,4 @@
-import { fetchHtml } from "./ksp-task-grabber";
+import { fetchHtml, isLoggedIn } from "./ksp-task-grabber";
let apitoken : string | null = null
@@ -85,3 +85,28 @@ export async function submit(id: string, subtask: string, uploadedData: string |
]
})
}
+export type TaskStatus = {
+ id: string
+ name: string
+ submitted: boolean
+ solved: boolean
+ points: number
+ maxPoints: number
+}
+
+export async function grabTaskSummary(): Promise