summaryrefslogtreecommitdiff
path: root/swiftstory/Cards.py
diff options
context:
space:
mode:
Diffstat (limited to 'swiftstory/Cards.py')
-rw-r--r--swiftstory/Cards.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/swiftstory/Cards.py b/swiftstory/Cards.py
index 3d314c3..d570f87 100644
--- a/swiftstory/Cards.py
+++ b/swiftstory/Cards.py
@@ -5,12 +5,12 @@ class Cards:
@staticmethod
def get_white_cards(lang):
''' Read the file containing the white cards and return a list of cards '''
- with open('usr/share/swiftstory/lang/' + lang + '/cards/white.json', encoding='utf-8') as fh:
+ 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('usr/share/swiftstory/lang/' + lang + '/cards/black.json', encoding='utf-8') as fh:
+ with open(f'usr/share/swiftstory/lang/{lang}/cards/black.json', encoding='utf-8') as fh:
return json.load(fh)