Skip to content

Commit

Permalink
Fix UTX time bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Songzx07 committed Oct 28, 2024
1 parent 2875a92 commit 48c3df6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test_times.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ def test_iss_passes():
'min_visibility': 300})

result = iss_passes(time_data.json())
expected = [('2024-10-29 11:26:15', '2024-10-29 11:36:35')]
expected = [('2024-10-29 03:26:15', '2024-10-29 03:36:35')]

assert result == expected
7 changes: 1 addition & 6 deletions times.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,4 @@ def iss_passes(data):
end = datetime.datetime.fromtimestamp(item['endUTC']).strftime("%Y-%m-%d %H:%M:%S")
time_range.append((start,end))

return time_range

data=get_data(25544,41.702,-76.014,0,2,300).text
data = json.loads(data)

print(data)
return time_range

0 comments on commit 48c3df6

Please sign in to comment.