Corona: country abbreviation edits

This commit is contained in:
oddluck 2020-03-17 06:52:03 +00:00
parent 93d260bc94
commit 3ee4f502ec

View File

@ -225,7 +225,7 @@ countries = {
"QA": "QATAR", "QA": "QATAR",
"RE": "RÉUNION", "RE": "RÉUNION",
"RO": "ROMANIA", "RO": "ROMANIA",
"RU": "RUSSIAN FEDERATION", "RU": "RUSSIA",
"RW": "RWANDA", "RW": "RWANDA",
"BL": "SAINT BARTHÉLEMY", "BL": "SAINT BARTHÉLEMY",
"SH": "SAINT HELENA", "SH": "SAINT HELENA",
@ -503,6 +503,8 @@ class Corona(callbacks.Plugin):
pass pass
if search.lower() == 'usa' or 'united states' in search.lower(): if search.lower() == 'usa' or 'united states' in search.lower():
search = 'us' search = 'us'
if 'korea' in search.lower():
search = 'korea, south'
if region and search.lower() == region.lower(): if region and search.lower() == region.lower():
location = region location = region
confirmed += int(r.get('Confirmed')) confirmed += int(r.get('Confirmed'))