Skip to content

Commit

Permalink
fix unit and interval transposition in schemas.py (#752)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Stahnke committed Apr 30, 2017
1 parent 6367a98 commit 393e051
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lemur/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ def validate_options(options):
if not interval and not unit:
return

if interval == 'month':
unit *= 30
if unit == 'month':
interval *= 30

elif interval == 'week':
unit *= 7
elif unit == 'week':
interval *= 7

if unit > 90:
if interval > 90:
raise ValidationError('Notification cannot be more than 90 days into the future.')


Expand Down

0 comments on commit 393e051

Please sign in to comment.