1
0
Fork 0

Fix scheduling from satellite view

Fixes a condition when trying to schedule an observation from the satellite modal - obs_filter is triggered but there is no ground station specified so that is passed on as 'undefined', where django expects an int to filter on. With this change, if there is no ground_station offered in obs_filter it is skipped. Now all new observation calculation methods are working again.
merge-requests/318/head
Corey Shields 2017-03-04 14:10:26 -05:00
parent 5515d2e7f8
commit 83e239314d
1 changed files with 2 additions and 1 deletions

View File

@ -284,7 +284,8 @@ def observation_new(request):
obs_filter['norad'] = norad
obs_filter['start_date'] = start_date
obs_filter['end_date'] = end_date
obs_filter['ground_station'] = ground_station
if ground_station:
obs_filter['ground_station'] = ground_station
else:
obs_filter['exists'] = False