1
0
Fork 0

Check if TLE is valid

* Fix remote on CI
environments/stage/deployments/6
Nikos Roussos 2017-09-14 09:42:03 +03:00
parent b6c0132576
commit 65b4c066a0
No known key found for this signature in database
GPG Key ID: BADFF1767BA7C8E1
2 changed files with 8 additions and 7 deletions

View File

@ -24,8 +24,7 @@ stage:
- echo "$SSH_PRIVATE_KEY" >> ~/.ssh/id_rsa
- chmod -R u=rwX,o=,g= ~/.ssh/
- echo "$SSH_SERVER_HOSTKEY" > ~/.ssh/known_hosts
- git remote add origin ssh://$SERVER_USER@$SERVER_HOST$SERVER_PATH
- git push -u origin dev
- git push -u ssh://$SERVER_USER@$SERVER_HOST$SERVER_PATH dev
production:
stage: deploy
@ -37,5 +36,4 @@ production:
- echo "$SSH_PRIVATE_KEY" >> ~/.ssh/id_rsa
- chmod -R u=rwX,o=,g= ~/.ssh/
- echo "$SSH_SERVER_HOSTKEY" > ~/.ssh/known_hosts
- git remote add origin ssh://$SERVER_USER@$SERVER_HOST$SERVER_PATH
- git push -u origin master
- git push -u ssh://$SERVER_USER@$SERVER_HOST$SERVER_PATH master

View File

@ -561,9 +561,12 @@ def station_view(request, id):
# using the angles module convert the sexagesimal degree into
# something more easily read by a human
elevation = format(math.degrees(altt), '.0f')
azimuth_r = format(math.degrees(azr), '.0f')
azimuth_s = format(math.degrees(azs), '.0f')
try:
elevation = format(math.degrees(altt), '.0f')
azimuth_r = format(math.degrees(azr), '.0f')
azimuth_s = format(math.degrees(azs), '.0f')
except:
continue
passid += 1
# show only if >= configured horizon and in next 6 hours,