From ef7e0509eb3fa4d3fec26d831d2c428f65f06035 Mon Sep 17 00:00:00 2001 From: gigaSec <105108954+giga-sec@users.noreply.github.com> Date: Mon, 4 Mar 2024 11:21:01 +0800 Subject: [PATCH] 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" --- src/jobspy/jobs/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jobspy/jobs/__init__.py b/src/jobspy/jobs/__init__.py index c4bbb43..4db75bf 100644 --- a/src/jobspy/jobs/__init__.py +++ b/src/jobspy/jobs/__init__.py @@ -136,7 +136,7 @@ class Country(Enum): @property def glassdoor_domain_value(self): - if len(self.value) == 3: + if len(self.value) >= 2: subdomain, _, domain = self.value[2].partition(":") if subdomain and domain: return f"{subdomain}.glassdoor.{domain}"