Skip to content

Commit

Permalink
fix: ignore random periodicity in validations
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush committed Oct 5, 2021
1 parent ab2adf0 commit 3d3655e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def validate_end_date_visits(self):
"Yearly": 365
}
for item in self.items:
if item.periodicity and item.start_date:
if item.periodicity and item.periodicity != "Random" and item.start_date:
if not item.end_date:
if item.no_of_visits:
item.end_date = add_days(item.start_date, item.no_of_visits * days_in_period[item.periodicity])
Expand Down

0 comments on commit 3d3655e

Please sign in to comment.