Get entries from JSON data, handling both 'entries' and 'standards' keys.
(data: dict)
| 181 | |
| 182 | |
| 183 | def get_entries(data: dict) -> list: |
| 184 | """Get entries from JSON data, handling both 'entries' and 'standards' keys.""" |
| 185 | return data.get("entries", data.get("standards", [])) |
| 186 | |
| 187 | |
| 188 | def get_title_str(title, lang: str = "en") -> str: |
no test coverage detected