Skip to content

Commit

Permalink
update reqs, add cache-control
Browse files Browse the repository at this point in the history
  • Loading branch information
redraw committed Apr 24, 2024
1 parent f25d685 commit 9d947cb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- [ ] calculate approximate magnitude
- [ ] migrate NASA TLE API to official's [Celestrak GP API](https://celestrak.com/NORAD/elements/gp-index.php)
- [x] migrate NASA TLE API to official's [Celestrak GP API](https://celestrak.com/NORAD/elements/gp-index.php)
- [ ] plot?

2 changes: 1 addition & 1 deletion app/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 🛰️ Groundtrack API
# 🛰️ Satellite Passes API

Query next passes for a given satellite above you.

Expand Down
1 change: 1 addition & 0 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def passes(norad_id):
return Response(json.dumps(next_passes[:limit]), headers={
"x-api-cache": "HIT",
"x-api-cache-ttl": f"{cache.ttl(cache_key)}",
"cache-control": f"public, max-age={cache.ttl(cache_key)}",
"content-type": "application/json"
})

Expand Down
15 changes: 7 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
Flask==1.1.2
redis==3.5.0
hiredis==1.0.1
gunicorn==20.0.4
requests==2.23.0
marshmallow==3.5.2
Flask==3.0.3
redis==5.0.4
hiredis==2.3.2
gunicorn==22.0.0
requests==2.31.0
marshmallow==3.21.1
Markdown==3.2.1
more-itertools==8.2.0
skyfield==1.39
Flask-Cors==3.0.9
Flask-Cors==4.0.0
flask-swagger-ui==3.36.0
itsdangerous==2.0.1

0 comments on commit 9d947cb

Please sign in to comment.