Fix GlassDoor Country Issue

Bossman, I get error if I input a "two letters country name" even though it is listed in the countries supported. 

I haven't tested it yet but is it possible the proposed changes can fix it? Thinkin that the problem is it doesn't accept "two letters"
pull/122/head
gigaSec 2024-03-04 11:21:01 +08:00 committed by GitHub
parent f8a4eccc6b
commit ef7e0509eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ class Country(Enum):
@property @property
def glassdoor_domain_value(self): def glassdoor_domain_value(self):
if len(self.value) == 3: if len(self.value) >= 2:
subdomain, _, domain = self.value[2].partition(":") subdomain, _, domain = self.value[2].partition(":")
if subdomain and domain: if subdomain and domain:
return f"{subdomain}.glassdoor.{domain}" return f"{subdomain}.glassdoor.{domain}"