Ibrahemqasim commited on
Commit
39a1891
·
verified ·
1 Parent(s): ee8f21a

Update make_nationalities.py

Browse files
Files changed (1) hide show
  1. make_nationalities.py +2 -1
make_nationalities.py CHANGED
@@ -15,6 +15,7 @@ nationalities = response.json()
15
  data_list = []
16
  # ---
17
  skip = [
 
18
  "west india !",
19
  "democratic republic of the congo",
20
  ]
@@ -23,7 +24,7 @@ for x in nationalities["data"]:
23
  if x["nat"] in skip:
24
  continue
25
  # ---
26
- if x["nat"].lower() == x["en"].lower():
27
  continue
28
  # ---
29
  data_list.append({
 
15
  data_list = []
16
  # ---
17
  skip = [
18
+ "barbadian_2",
19
  "west india !",
20
  "democratic republic of the congo",
21
  ]
 
24
  if x["nat"] in skip:
25
  continue
26
  # ---
27
+ if x["nat"].replace("-", " ").replace("the ", "").lower() == x["en"].replace("-", " ").replace("the ", "").lower():
28
  continue
29
  # ---
30
  data_list.append({