Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroNolan authored Nov 24, 2024
1 parent dbb6333 commit aa00743
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def NextPassageUpdate(tle, obs_lat, obs_lon):

def update_orbit_data():
global tle, observer_lat, observer_lon, passage_aos, passage_max, passage_los
tle = GetTLE(98880)
tle = GetTLE(60239)
last_request = datetime.now(timezone.utc).hour
tle_update_time_iso = tle['updated']
tle_update_time = datetime.fromisoformat(tle_update_time_iso).strftime('%Y-%m-%d %H:%M:%S UTC')
Expand Down Expand Up @@ -241,7 +241,7 @@ def update_orbit_data():
trace[key] = value.tolist()

if current_time.second == 0 and current_time.minute == 0 and current_time.hour != last_request:
tle = GetTLE(98880)
tle = GetTLE(60239)
last_request = current_time.hour
tle_update_time_iso = tle['updated']
tle_update_time = datetime.fromisoformat(tle_update_time_iso).strftime('%Y-%m-%d %H:%M:%S')
Expand Down

0 comments on commit aa00743

Please sign in to comment.