Skip to content
This repository was archived by the owner on Aug 19, 2018. It is now read-only.

Commit 2f27705

Browse files
committed
k
1 parent 5fda68f commit 2f27705

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crasync/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ def from_data(self, data):
385385
self.country_codes = [Country(c) for c in data.get('countryCodes')]
386386
self.rarities = [Rarity(c) for c in data.get('rarities')]
387387
self.cards = {c['name'].lower():CardInfo(c) for c in data.get('cards')}
388+
self.cards = {c['name'].lower().replace('.','').replace('-',''):CardInfo(c) for c in data.get('cards')}
388389

389390
def __repr__(self):
390391
return '<Clash Royale Constants Object>'

0 commit comments

Comments
 (0)