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

fix: prevent failed applications from being saved in success.json #884

Conversation

49Simon
Copy link
Collaborator

@49Simon 49Simon commented Nov 19, 2024

fixes: #896

  • Removed unused import
  • Changed job_apply to raise an exception clearly indicating low suitability score.
  • If job fails due to low suitability score, it will be saved to skipped.json file now.

@49Simon 49Simon linked an issue Nov 19, 2024 that may be closed by this pull request
@49Simon 49Simon self-assigned this Nov 19, 2024
@feder-cr feder-cr requested a review from sarob November 19, 2024 23:12
Copy link
Contributor

@surapuramakhil surapuramakhil left a comment

Choose a reason for hiding this comment

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

MR changes doesn't' make sense - looks like a hack.

@surapuramakhil surapuramakhil changed the base branch from hotfix/v2024.11.18 to release/v4.1.0 November 20, 2024 23:32
@surapuramakhil surapuramakhil removed the request for review from sarob November 21, 2024 00:15
@surapuramakhil surapuramakhil dismissed their stale review November 21, 2024 00:15

alternate reviewer

@49Simon 49Simon changed the title fix: prevent failed applications from saved in success.json fix: prevent failed applications from being saved in success.json Nov 25, 2024
@49Simon
Copy link
Collaborator Author

49Simon commented Nov 25, 2024

@surapuramakhil As requested, I've changed the flow and used custom exception.

src/custom_exception.py Show resolved Hide resolved
src/ai_hawk/linkedIn_easy_applier.py Show resolved Hide resolved
@surapuramakhil surapuramakhil removed the request for review from sarob November 26, 2024 12:50
@feder-cr
Copy link
Collaborator

feder-cr commented Dec 2, 2024

@surapuramakhil do you want merge or close this one?

1 similar comment
@feder-cr
Copy link
Collaborator

feder-cr commented Dec 2, 2024

@surapuramakhil do you want merge or close this one?

@surapuramakhil surapuramakhil merged commit cc0b814 into AIHawk-FOSS:release/v4.1.0 Dec 2, 2024
1 check passed
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.

[BUG]: Jobs are not being applied to, despite log record's statements
3 participants