forked from ifgi/optimetaPortal
-
Notifications
You must be signed in to change notification settings - Fork 0
Description
In #124 we add code for downloading the whole set of publications in different formats. There are also #48 and #62 and the related #105 for the download page.
The files names should be more informative. They should start with optimap_ so that the source is clear, they do not need to include "publications" because in the future, the data dump may include other metadata, but they should include a timestamp. Formats are differentiated by the extensions. Examples for filenames:
optimap_data_dump_20250401T130102.geojsonoptimap_data_dump_20250401T130102.geojson.gzoptimap_data_dump_20250401T130102.gpkg
The file name generate should be wrapped in a function so we have a single point of changing it:
filename = generate_data_dump_filename(extension = "geojson.gz")Add a configuration option on how many old files we want to keep. Start with 3.
All previous files will be deleted as part of the generation task.