Skip to content

Commit

Permalink
Adding date check to 'does the job exist' verification
Browse files Browse the repository at this point in the history
  • Loading branch information
cwwmbm committed Jun 12, 2023
1 parent dc18050 commit 1e75554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def job_exists(df, job):
# Check if the job already exists in the dataframe
if df.empty:
return False
return ((df['title'] == job['title']) & (df['company'] == job['company'])).any()
return ((df['title'] == job['title']) & (df['company'] == job['company']) & (df['date'] == job['date'])).any()

def get_jobcards(config):
#Function to get the job cards from the search results page
Expand Down

0 comments on commit 1e75554

Please sign in to comment.