Skip to content

Commit

Permalink
Add is_unknown flag in license data model
Browse files Browse the repository at this point in the history
Signed-off-by: akugarg <akanksha.garg2k@gmail.com>
  • Loading branch information
akugarg committed Jun 11, 2021
1 parent 8c44551 commit ff6ce3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/licensedcode/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ def to_dict(self):
'is_license_reference',
'is_license_tag',
'is_license_intro',
'is_unknown'
'is_unknown',
'only_known_words',
)

Expand Down
2 changes: 1 addition & 1 deletion src/scancode/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def _licenses_data_from_match(
matched_rule['is_license_reference'] = match.rule.is_license_reference
matched_rule['is_license_tag'] = match.rule.is_license_tag
matched_rule['is_license_intro'] = match.rule.is_license_intro
matched_rule['is_unknown'] = match.rule.is_unknwon
matched_rule['is_unknown'] = match.rule.is_unknown
matched_rule['matcher'] = match.matcher
matched_rule['rule_length'] = match.rule.length
matched_rule['matched_length'] = match.len()
Expand Down

0 comments on commit ff6ce3d

Please sign in to comment.