diff options
| author | Fuwn <[email protected]> | 2024-11-12 18:03:47 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-11-12 18:03:47 -0800 |
| commit | 59cd9e555d44223f477a444f234fc9c03a1e8ea2 (patch) | |
| tree | 88fa18b1ade43fa7d1d8fb8aabe198c969d27315 | |
| parent | chore: make main python script executable (diff) | |
| download | ami-59cd9e555d44223f477a444f234fc9c03a1e8ea2.tar.xz ami-59cd9e555d44223f477a444f234fc9c03a1e8ea2.zip | |
fix: null check job city
| -rwxr-xr-x | ami.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -196,7 +196,7 @@ def print_job_table(): for city in (environ.get("TARGET_CITIES") or "").split(","): fixed_city = city.strip() - if job["city"].lower() == fixed_city.lower(): + if job["city"] is not None and job["city"].lower() == fixed_city.lower(): notify( f"Found job in {fixed_city}", f"Job ID: {job['jobId']}\nTitle: {job['jobTitle']}\nCity: {job['city']}\nState: {job['state']}\nPay Rate: ${job['totalPayRateMin']} to ${job['totalPayRateMax']} {job['currencyCode']}\nEmployment Type: {job['employmentTypeL10N']}\nDistance: {job['distanceL10N']}", |