summaryrefslogtreecommitdiff
path: root/swiftstory/Cards.py
diff options
context:
space:
mode:
authorOlivier Gayot <olivier.gayot@sigexec.com>2021-12-23 15:27:43 +0100
committerOlivier Gayot <olivier.gayot@sigexec.com>2021-12-23 23:15:21 +0100
commit82cd09e010783b81ec58145c7682f4b8da49ac85 (patch)
tree83b3e61aaa4befcd340a01b2fb147a2306bdb29e /swiftstory/Cards.py
parent1be5c49ae402b768f9206724abdd503c18933ae1 (diff)
Use lowercase module names
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'swiftstory/Cards.py')
-rw-r--r--swiftstory/Cards.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/swiftstory/Cards.py b/swiftstory/Cards.py
deleted file mode 100644
index d570f87..0000000
--- a/swiftstory/Cards.py
+++ /dev/null
@@ -1,16 +0,0 @@
-import json
-
-
-class Cards:
- @staticmethod
- def get_white_cards(lang):
- ''' Read the file containing the white cards and return a list of cards '''
- with open(f'usr/share/swiftstory/lang/{lang}/cards/white.json', encoding='utf-8') as fh:
- return json.load(fh)
-
- @staticmethod
- def get_black_cards(lang):
- ''' Read the file containing the black cards and return a list of cards '''
-
- with open(f'usr/share/swiftstory/lang/{lang}/cards/black.json', encoding='utf-8') as fh:
- return json.load(fh)