rename UK Lotto to Lotto to match the website.

patch  bump
This commit is contained in:
onyx-and-iris 2026-02-22 23:34:10 +00:00
parent 56028b2c52
commit 3f7cf03931
3 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
[project] [project]
name = "lottery-tui" name = "lottery-tui"
version = "0.2.5" version = "0.2.6"
description = "A terminal user interface for lottery games." description = "A terminal user interface for lottery games."
authors = [{ name = "onyx-and-iris", email = "code@onyxandiris.online" }] authors = [{ name = "onyx-and-iris", email = "code@onyxandiris.online" }]
dependencies = ["textual>=8.0.0", "loguru>=0.7.3"] dependencies = ["textual>=8.0.0", "loguru>=0.7.3"]

View File

@ -45,18 +45,18 @@ class Lottery(ABC):
@register_lottery @register_lottery
class UKLotto(Lottery): class Lotto(Lottery):
"""A class representing the UK Lotto lottery. """A class representing the Lotto lottery.
UK Lotto draws 6 numbers from a pool of 1 to 59, without replacement. Lotto draws 6 numbers from a pool of 1 to 59, without replacement.
There is no bonus number in UK Lotto. There is no bonus number in Lotto.
""" """
POSSIBLE_NUMBERS = range(1, 60) POSSIBLE_NUMBERS = range(1, 60)
def draw(self) -> Result: def draw(self) -> Result:
"""Perform a UK Lotto draw.""" """Perform a Lotto draw."""
result = random.sample(UKLotto.POSSIBLE_NUMBERS, 6) result = random.sample(Lotto.POSSIBLE_NUMBERS, 6)
return Result(kind=type(self).__name__, numbers=result, bonus=None) return Result(kind=type(self).__name__, numbers=result, bonus=None)

View File

@ -19,7 +19,7 @@ class LotteryTUI(App):
Static('Pick a lottery to play:', id='instructions'), Static('Pick a lottery to play:', id='instructions'),
Select( Select(
options=[ options=[
('UK Lotto', 'uklotto'), ('Lotto', 'lotto'),
('EuroMillions', 'euromillions'), ('EuroMillions', 'euromillions'),
('Set For Life', 'setforlife'), ('Set For Life', 'setforlife'),
('Thunderball', 'thunderball'), ('Thunderball', 'thunderball'),