round knowledge fit value to two decimals
This commit is contained in:
parent
2336314310
commit
132206e823
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ class Task(BaseTask, KnowledgeAdapterMixin):
|
|||
item['other'].append(k)
|
||||
result.append(item)
|
||||
for item in result:
|
||||
item['fit'] /= len(reqs)
|
||||
item['fit'] = round(item['fit'] / len(reqs), 2)
|
||||
return sorted(result, key=lambda x: (-x['fit'], x['person'].title))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue