diff options
Diffstat (limited to 'swiftstory/Cards.py')
-rw-r--r-- | swiftstory/Cards.py | 16 |
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) |