Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
coupon: use float value for percent_off
Browse files Browse the repository at this point in the history
  • Loading branch information
sams96 committed Jul 1, 2020
1 parent 597e4dd commit 4810d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion localstripe/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def __init__(self, id=None, duration=None, amount_off=None,
raise UserError(400, 'Unexpected ' + ', '.join(kwargs.keys()))

amount_off = try_convert_to_int(amount_off)
percent_off = try_convert_to_int(percent_off)
percent_off = try_convert_to_float(percent_off)
duration_in_months = try_convert_to_int(duration_in_months)
try:
assert type(id) is str and id
Expand Down

0 comments on commit 4810d4b

Please sign in to comment.