Skip to content

Commit e2ba664

Browse files
fix: check searching elegibility in profile scoring validation
1 parent 0aade53 commit e2ba664

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

hrflow/utils/scoring.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import typing as t
22

33
from ..schemas import Education, Experience, HrFlowProfile
4+
from .searching import is_valid_for_searching
45

56

67
def is_valid_experiences_for_scoring(
@@ -65,7 +66,7 @@ def is_valid_for_scoring(
6566
if not isinstance(profile, HrFlowProfile):
6667
raise ValueError("profile must be a dict or a HrFlowProfile object")
6768

68-
return (
69+
return is_valid_for_searching(profile) and (
6970
is_valid_experiences_for_scoring(profile.experiences)
7071
or is_valid_educations_for_scoring(profile.educations)
7172
or bool(profile.summary)

0 commit comments

Comments
 (0)