From ebc193873c382bd814730e8ea3032604ebb4a851 Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Wed, 25 Sep 2024 18:35:35 +0200 Subject: Change card ID to string --- src/card.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/card.py') diff --git a/src/card.py b/src/card.py index 9f888e6..c2243a6 100644 --- a/src/card.py +++ b/src/card.py @@ -9,5 +9,5 @@ from hashlib import md5 Card = namedtuple('Card', ['front', 'back']) -def getId(card: Card) -> int: - return int(md5((card.front + card.back).encode("utf-8")).hexdigest(), 16) +def getId(card: Card) -> str: + return md5((card.front + card.back).encode("utf-8")).hexdigest() -- cgit v1.2.3