added timestamp while logging jobs
This commit is contained in:
parent
59c097daf4
commit
41ab1a9968
@ -1,3 +1,4 @@
|
||||
from datetime import datetime
|
||||
import os
|
||||
import random
|
||||
import time
|
||||
@ -134,6 +135,7 @@ class LinkedInJobManager:
|
||||
pdf_path = Path(job.pdf_path).resolve()
|
||||
pdf_path = pdf_path.as_uri()
|
||||
data = {
|
||||
"time": datetime.now().strftime("%Y-%m-%d %H:%M:%S"),
|
||||
"company": job.company,
|
||||
"job_title": job.title,
|
||||
"link": job.link,
|
||||
@ -205,4 +207,4 @@ class LinkedInJobManager:
|
||||
title_blacklisted = any(word in job_title_words for word in self.title_blacklist)
|
||||
company_blacklisted = company.strip().lower() in (word.strip().lower() for word in self.company_blacklist)
|
||||
link_seen = link in self.seen_jobs
|
||||
return title_blacklisted or company_blacklisted or link_seen
|
||||
return title_blacklisted or company_blacklisted or link_seen
|
Loading…
Reference in New Issue
Block a user