1
0
Fork 0

Fix multiple overlaps

pull/166/head
Nikos Roussos 2015-09-21 18:57:44 +03:00
parent 7200cb9d32
commit 6601a2da11
2 changed files with 4 additions and 1 deletions

View File

@ -226,7 +226,7 @@ def prediction_windows(request, sat_id, start_date, end_date):
'az_start': azr
})
# In case our window was split in two
if window[2]:
try:
window_start = window[2]
window_end = window[3]
station_windows['window'].append(
@ -235,6 +235,8 @@ def prediction_windows(request, sat_id, start_date, end_date):
'end': window_end.strftime("%Y-%m-%d %H:%M:%S.%f"),
'az_start': azr
})
except:
pass
else:
# window start outside of window bounds

View File

@ -25,6 +25,7 @@ $( document ).ready( function(){
$('.calculation-result').show();
$('#timeline').empty();
$('#hoverRes').hide();
$('#windows-data').empty();
var satellite = $('#satellite-selection').val();
var start_time = $('#datetimepicker-start input').val();
var end_time = $('#datetimepicker-end input').val();