You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
567 B
26 lines
567 B
from .utils import *
|
|
|
|
|
|
def getMapData():
|
|
mapList = typeList('country')
|
|
# print(mapList)
|
|
mapObj = {}
|
|
for i in mapList:
|
|
if mapObj.get(i, -1) == -1:
|
|
mapObj[i] = 1
|
|
else:
|
|
mapObj[i] += 1
|
|
return list(mapObj.keys()), list(mapObj.values())
|
|
|
|
|
|
def getLangData():
|
|
langList = typeList('lang')
|
|
# print(mapList)
|
|
langObj = {}
|
|
for i in langList:
|
|
if langObj.get(i, -1) == -1:
|
|
langObj[i] = 1
|
|
else:
|
|
langObj[i] += 1
|
|
return list(langObj.keys()), list(langObj.values())
|