Open Codingboy opened 6 years ago
Language queries don't produce results in the given language. Non-english names and text are provided with all API calls, and nested under a foreignNames key (in API JSON, which gets converted to foreign_names in Python).
You can get to the data you're looking for with:
[printing['text'] for printing in card.foreign_names if printing['language'] == 'Portuguese (Brazil)'][0]
You could also use any other code that checks the 'language' key in the 'foreign_names' dict, then gets the relevant info from that dict using keys like 'name', 'text', 'flavor', 'image_url'.
Only english cards are filtered. Even Card.where(language='Portuguese (Brazil)').where(set="RIX").all() just brings up english text as states in a closed issue.
Example Output: