diff --git a/classquiz/kahoot_importer/import_quiz.py b/classquiz/kahoot_importer/import_quiz.py index 6786c8e..45feda2 100644 --- a/classquiz/kahoot_importer/import_quiz.py +++ b/classquiz/kahoot_importer/import_quiz.py @@ -96,7 +96,7 @@ async def import_quiz(quiz_id: str, user: User) -> Quiz | str: cover = img_obj.id.hex quiz_data = Quiz( id=quiz_id, - public=True, + public=False, title=html.unescape(bleach.clean(quiz.kahoot.title, tags=ALLOWED_TAGS_FOR_QUIZ, strip=True)), description=html.unescape(bleach.clean(quiz.kahoot.description, tags=ALLOWED_TAGS_FOR_QUIZ, strip=True)), created_at=datetime.now(), diff --git a/frontend/src/lib/editor/uploader/Pixabay.svelte b/frontend/src/lib/editor/uploader/Pixabay.svelte index d4e318e..66c5db7 100644 --- a/frontend/src/lib/editor/uploader/Pixabay.svelte +++ b/frontend/src/lib/editor/uploader/Pixabay.svelte @@ -93,6 +93,22 @@ > {/each} +
+ { + page -= 1; + fetched_data = fetch_data(); + }} + >{$t('uploader.previous_page')} + + { + page += 1; + fetched_data = fetch_data(); + }}>{$t('uploader.next_page')} +
{/if} diff --git a/frontend/src/lib/i18n/locales/en.json b/frontend/src/lib/i18n/locales/en.json index 3bb9040..bcd845c 100644 --- a/frontend/src/lib/i18n/locales/en.json +++ b/frontend/src/lib/i18n/locales/en.json @@ -300,7 +300,9 @@ "upload_video": "Upload Video", "visit_pixabay": "Visit Pixabay", "images_by_pixabay": "Images provided by Pixabay", - "search_english_only": "The search works in English only" + "search_english_only": "The search works in English only", + "next_page": "Next page", + "previous_page": "Previous page" }, "avatar_settings": { "skin_color": "Skin color",