Currently, the window for lineage-by-sub-admin-most-recent is specified through an ndays parameter, which calculates a window based on the number days before today.
To be more general, we want to filter dates based on either min_date and/or max_date:
- Add a
min_date param to filter dates >= min_date
- Add a
max_date param to filter dates <= max_date
- To maintain backwards capability, retain the
ndays parameter (though you might want to refactor to route it through the min_date/max_date filters instead by setting max_date={today} and min_date={today - ndays}
Should be similar to #54