Merged in release/async (pull request #42)

ENCOA-254

Approved-by: Tiago Ribeiro
This commit is contained in:
carlos.mesquita
2024-12-03 08:36:33 +00:00
committed by Tiago Ribeiro

View File

@@ -37,7 +37,7 @@ async def generate_listening_dialog(
): ):
difficulty = random.choice(EducationalContent.DIFFICULTIES) if not difficulty else difficulty difficulty = random.choice(EducationalContent.DIFFICULTIES) if not difficulty else difficulty
topic = random.choice(EducationalContent.TOPICS) if not topic else topic topic = random.choice(EducationalContent.TOPICS) if not topic else topic
return await listening_controller.generate_listening_dialog(section, difficulty, topic) return await listening_controller.generate_listening_dialog(section, topic, difficulty)
@listening_router.post( @listening_router.post(
'/media', '/media',