From 3a266e3bfcc9e35c0219965fcebfe113c061ec97 Mon Sep 17 00:00:00 2001 From: Felix Pankratz Date: Thu, 9 May 2024 18:41:44 +0200 Subject: [PATCH] fix input validation --- bingo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bingo.py b/bingo.py index 5e7a16e..6d635ec 100644 --- a/bingo.py +++ b/bingo.py @@ -96,7 +96,7 @@ class BingoDisplay(Static): self.input_field.value = str(self.board.seed) def on_input_submitted(self, event: Input.Submitted) -> None: - if event.validation_result: + if event.validation_result.is_valid: self.board.roll_board(int(event.value)) class BingoBoard(Widget):