diff --git a/classquiz/routers/results.py b/classquiz/routers/results.py index 2fcd4f4..4c481b0 100644 --- a/classquiz/routers/results.py +++ b/classquiz/routers/results.py @@ -15,8 +15,14 @@ router = APIRouter() @router.get("/list") -async def list_game_results(user: User = Depends(get_current_user)) -> list[GameResults]: - results = await GameResults.objects.select_related(GameResults.quiz).all(user=user.id) +async def list_game_results( + user: User = Depends(get_current_user), +) -> list[GameResults]: + results = ( + await GameResults.objects.select_related(GameResults.quiz) + .order_by(GameResults.timestamp.desc()) + .all(user=user.id) + ) return results diff --git a/frontend/src/app.html b/frontend/src/app.html index a305b2a..5deb574 100644 --- a/frontend/src/app.html +++ b/frontend/src/app.html @@ -9,7 +9,6 @@ SPDX-License-Identifier: MPL-2.0 - {#if open} diff --git a/frontend/src/lib/editor.svelte b/frontend/src/lib/editor.svelte index b8a3004..6472058 100644 --- a/frontend/src/lib/editor.svelte +++ b/frontend/src/lib/editor.svelte @@ -5,9 +5,6 @@ SPDX-License-Identifier: MPL-2.0 --> @@ -57,11 +55,6 @@ SPDX-License-Identifier: MPL-2.0 : `unset`}" >
- {#await import('$lib/inline-editor.svelte')} {:then c} @@ -70,7 +63,6 @@ SPDX-License-Identifier: MPL-2.0