Skip to content

Commit

Permalink
sybil score when - was making a positive risk score
Browse files Browse the repository at this point in the history
  • Loading branch information
owocki committed Sep 24, 2020
1 parent 4df4c78 commit 145cd9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/grants/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ def update_grant_metadata(self, grant_id, retry: bool = True) -> None:
try:
ss = float(instance.sybil_score)
instance.weighted_risk_score = float(ss ** 2) * float(math.sqrt(float(instance.clr_prediction_curve[0][1])))
if ss < 0:
instance.weighted_risk_score = 0
except Exception as e:
print(e)

Expand Down

0 comments on commit 145cd9f

Please sign in to comment.