Skip to content

Commit

Permalink
fix globalScore null
Browse files Browse the repository at this point in the history
  • Loading branch information
marceloarocha committed Jul 16, 2024
1 parent d8ed980 commit 33f8a5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/prescription.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def getPrescriptions():
for f in featuresNames:
features[f] = p[0].features[f] if f in p[0].features else 0

features["globalScore"] = p.globalScore
features["globalScore"] = none2zero(p.globalScore)

if features["globalScore"] > 90:
features["class"] = "red"
Expand Down

0 comments on commit 33f8a5e

Please sign in to comment.