Skip to content

Commit

Permalink
Merge b008c46 into 9be4c45
Browse files Browse the repository at this point in the history
  • Loading branch information
jnation3406 committed Aug 21, 2019
2 parents 9be4c45 + b008c46 commit 854edcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion observation_portal/requestgroups/cadence.py
Expand Up @@ -28,7 +28,7 @@ def expand_cadence_request(request_dict, is_staff=False):
request_dict['windows'] = [{'start': window_start, 'end': window_end}]
intervals_by_site = get_filtered_rise_set_intervals_by_site(request_dict, is_staff=is_staff)
largest_interval = get_largest_interval(intervals_by_site)
if largest_interval.total_seconds() >= request_duration and window_end > timezone.now():
if largest_interval.total_seconds() > request_duration and window_end > timezone.now():
# this cadence window passes rise_set and is in the future so add it to the list
request_copy = request_dict.copy()
del request_copy['cadence']
Expand Down

0 comments on commit 854edcb

Please sign in to comment.