Skip to content

Commit

Permalink
fixing the issue where in new databases an exception is thrown when t…
Browse files Browse the repository at this point in the history
…rying to mark the job as interview or rejected
  • Loading branch information
cwwmbm committed Jun 30, 2023
1 parent 3217fd3 commit 723627a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ def transform(soup):
'job_url': job_url,
'job_description': job_description,
'applied': 0,
'hidden': 0
'hidden': 0,
'interview': 0,
'rejected': 0
}
joblist.append(job)
return joblist
Expand Down Expand Up @@ -298,8 +300,7 @@ def main():
df['date_loaded'] = datetime.now()
df_filtered['date_loaded'] = datetime.now()
df['date_loaded'] = df['date_loaded'].astype(str)
df_filtered['date_loaded'] = df_filtered['date_loaded'].astype(str)

df_filtered['date_loaded'] = df_filtered['date_loaded'].astype(str)

if conn is not None:
#Update or Create the database table for the job list
Expand Down

0 comments on commit 723627a

Please sign in to comment.