File tree 4 files changed +9
-4
lines changed
4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ Change Log
13
13
14
14
Unreleased
15
15
16
+ [1.43.3] - 2023-08-02
17
+ ---------------------
18
+ * fix: Fixed some implementation issues in job recommendation logic.
19
+
16
20
[1.43.2] - 2023-08-01
17
21
---------------------
18
22
* perf: Further performance enhancements for the algolia index command.
Original file line number Diff line number Diff line change 15
15
# 2. MINOR version when you add functionality in a backwards compatible manner, and
16
16
# 3. PATCH version when you make backwards compatible bug fixes.
17
17
# More details can be found at https://semver.org/
18
- __version__ = '1.43.2 '
18
+ __version__ = '1.43.3 '
19
19
20
20
default_app_config = 'taxonomy.apps.TaxonomyConfig' # pylint: disable=invalid-name
Original file line number Diff line number Diff line change 16
16
'searchable(skills.name)' ,
17
17
'searchable(industry_names)' ,
18
18
'searchable(b2c_opt_in)'
19
+ 'searchable(job_sources)'
19
20
],
20
21
}
21
22
Original file line number Diff line number Diff line change @@ -113,16 +113,16 @@ def calculate_job_recommendations(jobs_data):
113
113
Note: `jobs_data` will be treated as mutable (instead of creating a new dict to return)
114
114
to reduce memory footprint of this function.
115
115
116
- Args :
116
+ Arguments :
117
117
jobs_data (dict<str: dict>): A dictionary containing jobs data like skills. key of the dict is jobs name and
118
118
the value dict should at-least contain a set of skills against `skills` key.
119
119
120
120
Returns:
121
121
(dict<str: dict>): The same dict from the argument, with `similar_jobs` added against each job.
122
122
"""
123
123
SIMILAR_JOBS_COUNT = 3
124
- job_recommendations = deque ([], maxlen = SIMILAR_JOBS_COUNT )
125
124
for job_name , job in jobs_data .items ():
125
+ job_recommendations = deque ([], maxlen = SIMILAR_JOBS_COUNT )
126
126
for candidate_job_name , candidate_job in jobs_data .items ():
127
127
if job_name == candidate_job_name :
128
128
continue
@@ -131,7 +131,7 @@ def calculate_job_recommendations(jobs_data):
131
131
132
132
insert_item_in_ordered_queue (
133
133
queue = job_recommendations ,
134
- item = JobRecommendation (job_name , jaccard_similarity ),
134
+ item = JobRecommendation (candidate_job_name , jaccard_similarity ),
135
135
key = lambda item : item .similarity ,
136
136
)
137
137
You can’t perform that action at this time.
0 commit comments