Validate text labels in text frontend (#495)

* Validate text labels in text frontend

* Correct task type
This commit is contained in:
Oliver Stanley
2023-01-07 21:30:18 +01:00
committed by GitHub
parent 5b2cb5dd29
commit 45f2f3a60e
2 changed files with 24 additions and 7 deletions
+2 -1
View File
@@ -302,7 +302,8 @@ def tasks_interaction(
logger.info(
f"Frontend reports labels of {interaction.message_id=} with {interaction.labels=} by {interaction.user=}."
)
# TODO: check if the labels are valid?
# Labels are implicitly validated when converting str -> TextLabel
# So no need for explicit validation here
pr.store_text_labels(interaction)
return protocol_schema.TaskDone()
case _: