-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
690 #693
690 #693
Conversation
Release/v11.08.2024
I will test it and make a judgement as soon as possible. Some cases like "phone number" maybe can be used for all companies. |
I don't understand your point? It is checking if the company name is in the answer you probably don't want to reuse those answers |
src/ai_hawk/linkedIn_easy_applier.py
Outdated
@@ -844,10 +857,9 @@ def _save_questions_to_json(self, question_data: dict) -> None: | |||
logger.error("JSON decoding failed") | |||
data = [] | |||
|
|||
# Use the new function to check for existing questions | |||
question_exists = self._question_exists_in_data(question_data['question'], data) | |||
should_be_saved: bool = not question_already_exists_in_data(question_data['question'], data) or self.answer_contians_company_name(question_data['answer']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this be AND instead of OR? And shouldn't it be NOT self.answer_contians_company_name
instead of just self.answer_contians_company_name
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes fixed
9de36c6
to
da88f05
Compare
@FrancescoVassalli join on telegram group |
address #690