Flagsmith / flagsmith-engine

This project powers the core Flagsmith API flag evaluations engine.
https://flagsmith.com/
BSD 3-Clause "New" or "Revised" License
10 stars 6 forks source link

fix: decimal trait values #187

Closed khvn26 closed 1 year ago

khvn26 commented 1 year ago

This PR fixes two issues:

  1. When passing a decimal.Decimal as trait value, the engine will check if it's an actual integer value instead of blindly coercing to float.
  2. When coercing a numeric string, the engine will try int before float.
github-actions[bot] commented 1 year ago

File Coverage
All files 100% :white_check_mark:

Minimum allowed coverage is 100%

Generated by :monkey: cobertura-action against 3212e745180d61776b38ae98ba43064bd51589fc