Commit Graph

2 Commits (master)

Author SHA1 Message Date
Fabian P. Schmidt 3e69cfdcd7 Refactor SatNOGS API calls into an own module
Eventually this module will be replace by the offical SatNOGS API client.
2019-11-02 22:11:17 +01:00
Fabian P. Schmidt 0cbf664991 Refactor caching into a CacheManager module and add CACHE_DIR setting
This commit contains mostly re-location of code, but some
logic changes as well:
- Added the CACHE_DIR setting (previously it was hardcoded)
- Fixed the "cache last updated"/tnow timestamp re-using the
  args.starttime variable. Previously, if a user invoked the script
  with the starttime argument in the far future, the caches
  "last_update" timestamp would've used this future date as a reference
  (and thus the cache wouldn't be updated until this startdate passed)
2019-11-02 22:02:26 +01:00