Skip to content

Commit 83555af

Browse files
refactor search jobs formula links length
Signed-off-by: GuillaumeFalourd <guillaume.falourd@zup.com.br>
1 parent 955f186 commit 83555af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

linkedin/search/jobs/src/formula/formula.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ def run(city, profession, send_email, email_receiver, sendgrid_api_key, sendgrid
2626
else:
2727
job = profession.capitalize()
2828

29-
if len(links) == 0:
29+
if len(job_links) == 0:
3030
print(f"\033[1;36m\n⚠️ Couldn't extract job links list from LinkedIn, try again later!\033[0m")
3131
else:
32-
print(f'\033[1;33m\n🕵️ There are {len(links)} available {job} jobs in {city.capitalize()}.\n\033[0m')
32+
print(f'\033[1;33m\n🕵️ There are {len(job_links)} available {job} jobs in {city.capitalize()}.\n\033[0m')
3333

3434
# Extract Datas into a CSV file
3535
csv_filename = csv.filename(job, city)

0 commit comments

Comments
 (0)