Skip to content

Commit c8bd1f5

Browse files
committed
Update AWOC DB for Turkish spelling. Error handling of countries not in AWOC. Change version number (1.7.18)
1 parent 96f7442 commit c8bd1f5

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed

src/awoc/datum/world.json

+19-1
Original file line numberDiff line numberDiff line change
@@ -2214,7 +2214,7 @@
22142214
"Area KM2": "254"
22152215
},
22162216
{
2217-
"Country Name": "Macedonia",
2217+
"Country Name": "North Macedonia",
22182218
"ISO2": "MK",
22192219
"ISO3": "MKD",
22202220
"TLD": "mk",
@@ -3959,6 +3959,24 @@
39593959
"Languages": "Turkish (official), Kurdish, other minority languages",
39603960
"Area KM2": "780580"
39613961
},
3962+
{
3963+
"Country Name": "Türkiye",
3964+
"ISO2": "TR",
3965+
"ISO3": "TUR",
3966+
"TLD": "tr",
3967+
"FIPS": "TU",
3968+
"ISO Numeric": "792",
3969+
"GeoNameID": "298795",
3970+
"E164": "90",
3971+
"Phone Code": "90",
3972+
"Continent Name": "Asia",
3973+
"Continent Code": "as",
3974+
"Capital": "Ankara",
3975+
"Time Zone in Capital": "Europe/Istanbul",
3976+
"Currency Name": "Lira",
3977+
"Languages": "Turkish (official), Kurdish, other minority languages",
3978+
"Area KM2": "780580"
3979+
},
39623980
{
39633981
"Country Name": "Turkmenistan",
39643982
"ISO2": "TM",

src/cli/sentinel.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,12 @@ def get_nodes(self, latency, *kwargs):
9898

9999
if OurWorld.NL_FULL in d[NodeKeys.NodesInfoKeys[4]]:
100100
d[NodeKeys.NodesInfoKeys[4]] = OurWorld.NL
101-
102-
d_continent = OurWorld.our_world.get_country_continent_name(d[NodeKeys.NodesInfoKeys[4]])
101+
102+
try:
103+
d_continent = OurWorld.our_world.get_country_continent_name(d[NodeKeys.NodesInfoKeys[4]])
104+
except NameError as e:
105+
print(str(e))
106+
continue
103107
try:
104108
self.NodeTree.create_node(d[NodeKeys.NodesInfoKeys[4]],d[NodeKeys.NodesInfoKeys[4]], parent=d_continent)
105109
except:

src/typedef/konstants.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class IBCTokens():
6767

6868
class TextStrings():
6969
dash = "-"
70-
VERSION = "v1.7.17"
70+
VERSION = "v1.7.18"
7171

7272
class MeileColors():
7373
DIALOG_BG_COLOR = "#121212"

0 commit comments

Comments
 (0)