guynir42 / AstroRetriever

A package used for downloading and processing images from various astronomical surveys
Other
4 stars 2 forks source link

check modified date of config file when caching #33

Open guynir42 opened 1 year ago

guynir42 commented 1 year ago

Right now we don't re-load a config file if it is cached. This is a bug because the file could change while the code is running and the cache will not be cleared. We should also keep track of the last modified date and only if it is before the cached date use the file.

ref: https://stackoverflow.com/questions/375154/how-do-i-get-the-time-a-file-was-last-modified-in-python