From 22d677d11987818689bca176f11af608f230d31f Mon Sep 17 00:00:00 2001 From: Emmanuel Di Pretoro Date: Thu, 9 Jul 2026 15:32:00 +0200 Subject: [PATCH] Renaming the total attribute as oatop --- noid.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/noid.py b/noid.py index f4519d4..6e0cade 100644 --- a/noid.py +++ b/noid.py @@ -16,8 +16,8 @@ class Minter(): digitcount: ClassVar[int] = 10 oacounter: int = 0 + oatop: int = 0 template: str = "" - total: int = 0 prefix: str = "" mask: str = "" active_counters: list[Counter] = field(default_factory=list) @@ -65,14 +65,14 @@ class Minter(): return -1 if not all(char in ("d", "e") for char in self.mask.rstrip("k")[1:]): return -1 - self.total = 1 + self.oatop = 1 for chr in self.mask: match chr: case "e": - self.total *= self.alphacount + self.oatop *= self.alphacount case "d": - self.total *= self.digitcount - return self.total + self.oatop *= self.digitcount + return self.oatop if __name__ == "__main__":