1
0
Fork 0

Remove unused fetch of satellite position from satnogs-network

environments/stage/deployments/5
Fabian P. Schmidt 2017-11-05 14:54:01 +01:00 committed by Nikos Roussos
parent 861782ce35
commit e9fc0c0296
No known key found for this signature in database
GPG Key ID: BADFF1767BA7C8E1
1 changed files with 0 additions and 9 deletions

View File

@ -1,6 +1,5 @@
import ephem
import logging
import requests
from datetime import datetime
from django.conf import settings
@ -96,19 +95,11 @@ def satellite(request, norad):
except:
latest_frame = ''
url = '{0}{1}'.format(settings.SATELLITE_POSITION_ENDPOINT, norad)
try:
sat_position = requests.get(url).json()
except:
sat_position = ''
return render(request, 'base/satellite.html', {'satellite': satellite,
'suggestions': suggestions,
'modes': modes,
'latest_frame': latest_frame,
'telemetry_data_count': telemetry_data_count,
'sat_position': sat_position,
'mapbox_id': settings.MAPBOX_MAP_ID,
'mapbox_token': settings.MAPBOX_TOKEN})