Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,11 +56,11 @@ def search_jobs_tool(industry: str = "", country: str = "", keyword: str = "", l
|
|
| 56 |
base = "https://jobicy.com/api/v2/remote-jobs"
|
| 57 |
params = {"count": max(1, min(limit, 50))}
|
| 58 |
if industry:
|
| 59 |
-
params["
|
| 60 |
if country and country.lower() != "anywhere":
|
| 61 |
params["geo"] = country.lower()
|
| 62 |
if keyword:
|
| 63 |
-
params["
|
| 64 |
|
| 65 |
logger.info(f"Requesting Jobicy API with params: {params}")
|
| 66 |
try:
|
|
|
|
| 56 |
base = "https://jobicy.com/api/v2/remote-jobs"
|
| 57 |
params = {"count": max(1, min(limit, 50))}
|
| 58 |
if industry:
|
| 59 |
+
params["industry"] = industry.lower().replace(" & ", "-").replace(" ", "-")
|
| 60 |
if country and country.lower() != "anywhere":
|
| 61 |
params["geo"] = country.lower()
|
| 62 |
if keyword:
|
| 63 |
+
params["tag"] = keyword.strip()
|
| 64 |
|
| 65 |
logger.info(f"Requesting Jobicy API with params: {params}")
|
| 66 |
try:
|