From 8b743abcfbe95a0fb376b16433db8e7fd8f6f418 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sun, 22 Feb 2026 23:34:10 +0000 Subject: [PATCH] rename UK Lotto to Lotto to match the website. patch bump --- pyproject.toml | 2 +- src/lottery_tui/lottery.py | 12 ++++++------ src/lottery_tui/tui.py | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a0df423..2f7febb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "lottery-tui" -version = "0.2.5" +version = "0.2.6" description = "A terminal user interface for lottery games." authors = [{ name = "onyx-and-iris", email = "code@onyxandiris.online" }] dependencies = ["textual>=8.0.0", "loguru>=0.7.3"] diff --git a/src/lottery_tui/lottery.py b/src/lottery_tui/lottery.py index b1c44d5..3c37d81 100644 --- a/src/lottery_tui/lottery.py +++ b/src/lottery_tui/lottery.py @@ -45,18 +45,18 @@ class Lottery(ABC): @register_lottery -class UKLotto(Lottery): - """A class representing the UK Lotto lottery. +class Lotto(Lottery): + """A class representing the Lotto lottery. - UK Lotto draws 6 numbers from a pool of 1 to 59, without replacement. - There is no bonus number in UK Lotto. + Lotto draws 6 numbers from a pool of 1 to 59, without replacement. + There is no bonus number in Lotto. """ POSSIBLE_NUMBERS = range(1, 60) def draw(self) -> Result: - """Perform a UK Lotto draw.""" - result = random.sample(UKLotto.POSSIBLE_NUMBERS, 6) + """Perform a Lotto draw.""" + result = random.sample(Lotto.POSSIBLE_NUMBERS, 6) return Result(kind=type(self).__name__, numbers=result, bonus=None) diff --git a/src/lottery_tui/tui.py b/src/lottery_tui/tui.py index 3d1ed88..77bda3d 100644 --- a/src/lottery_tui/tui.py +++ b/src/lottery_tui/tui.py @@ -19,7 +19,7 @@ class LotteryTUI(App): Static('Pick a lottery to play:', id='instructions'), Select( options=[ - ('UK Lotto', 'uklotto'), + ('Lotto', 'lotto'), ('EuroMillions', 'euromillions'), ('Set For Life', 'setforlife'), ('Thunderball', 'thunderball'),