Skip to content

Commit

Permalink
Round to int as python 3 division no longer to do it by default and
Browse files Browse the repository at this point in the history
return a float
  • Loading branch information
digitalfox committed Nov 26, 2014
1 parent ca56c5e commit 29907d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yokadi/core/bugutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def computeUrgency(keywordDict):
likelihood = keywordDict[LIKELIHOOD_PROPERTY_NAME]
severity = keywordDict[SEVERITY_PROPERTY_NAME]
maxUrgency = LIKELIHOOD_LIST[-1][0] * SEVERITY_LIST[-1][0]
return 100 * likelihood * severity / maxUrgency
return int(100 * likelihood * severity / maxUrgency)


def editBugKeywords(keywordDict):
Expand Down

0 comments on commit 29907d4

Please sign in to comment.