Skip to content

Commit

Permalink
fix: score could be string (#22)
Browse files Browse the repository at this point in the history
fixes #21
  • Loading branch information
Neo23x0 authored Mar 1, 2024
1 parent d800a91 commit 08a8b69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main/rule_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ def evaluate_yara_rule_score(rule, YARA_FORGE_CONFIG):
for key, value in meta_data.items():
if key == 'score':
# If the rule already has a score, we use that
return value
return int(value)

# Score for the rule meta data
meta_data_rule_score = evaluate_yara_rule_meta_data(rule)
Expand Down
2 changes: 1 addition & 1 deletion yara-forge.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# YARA Forge
# A YARA Rule Concentrator
# Florian Roth
# February 2024
# March 2024

__version__ = '0.8.1'

Expand Down

0 comments on commit 08a8b69

Please sign in to comment.