summaryrefslogtreecommitdiffstats
path: root/src/card.py
diff options
context:
space:
mode:
authorEddy Pedroni <epedroni@pm.me>2024-09-25 18:35:35 +0200
committerEddy Pedroni <epedroni@pm.me>2024-09-25 18:35:35 +0200
commitebc193873c382bd814730e8ea3032604ebb4a851 (patch)
tree7712cd78d0f97919946399627c0641b32baf4fba /src/card.py
parent25546dad1f508f264b3224dd50dd42426d8b6aba (diff)
Change card ID to string
Diffstat (limited to 'src/card.py')
-rw-r--r--src/card.py4
1 files changed, 2 insertions, 2 deletions
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()