File tree Expand file tree Collapse file tree 4 files changed +6
-3
lines changed
Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11# A changelog for the lib/hyperglot language database and CLI tool (dd.mm.yyyy)
22
3+ ## 0.7.1 (07.10.2024)
4+ - FIX: Fixed ` hyperglot-data ` error
5+
36## 0.7.0 (07.10.2024)
47- DATA: All language yaml documents now have their ` contributors ` listed, some have ` reviewers ` listed
58- DATA: ** Massive* improvement of language ` sources ` with proper source citations where possible
Original file line number Diff line number Diff line change 66from enum import Enum
77from typing import List
88
9- __version__ = "0.7.0 "
9+ __version__ = "0.7.1 "
1010
1111DB = path .abspath (path .join (path .dirname (__file__ ), "data" ))
1212DB_EXTRA = path .abspath (path .join (path .dirname (__file__ ), "extra_data" ))
Original file line number Diff line number Diff line change @@ -458,7 +458,7 @@ def export(output):
458458
459459@click .command ()
460460@click .argument ("search" )
461- def data (search ):
461+ def data (search = "" ):
462462 """
463463 Pass in a 3-letter iso code or language name (search term) to show
464464 Hyperglot data for it
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ def find_language(search):
3636 autonyms = [] if not aut else [aut .lower ()]
3737 if "orthographies" in lang :
3838 for o in lang ["orthographies" ]:
39- if "autonym" in o :
39+ if "autonym" in o and o [ "autonym" ] is not None :
4040 autonyms .append (o ["autonym" ].lower ())
4141
4242 if search == name or search in autonyms :
You can’t perform that action at this time.
0 commit comments