Skip to content
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

Merged
merged 2 commits into from
Oct 31, 2024
Merged

690 #693

merged 2 commits into from
Oct 31, 2024

Conversation

FrancescoVassalli
Copy link
Contributor

address #690

@cjbbb
Copy link
Contributor

cjbbb commented Oct 31, 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.

@FrancescoVassalli
Copy link
Contributor Author

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

@@ -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'])
Copy link
Contributor

@sloganking sloganking Oct 31, 2024

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes fixed

@feder-cr
Copy link
Owner

@FrancescoVassalli join on telegram group

@feder-cr feder-cr changed the base branch from release/v11.08.2024 to release/v11.01.2024 October 31, 2024 08:11
@feder-cr feder-cr merged commit 3e63d60 into feder-cr:release/v11.01.2024 Oct 31, 2024
1 check passed
HuseynA28 pushed a commit to HuseynA28/Auto_Applier that referenced this pull request Nov 11, 2024
DanielT504 pushed a commit to DanielT504/Auto_Jobs_Applier_AI_Agent that referenced this pull request Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants