nextstrain / fauna

RethinkDB database to support real-time virus analysis
GNU Affero General Public License v3.0
33 stars 13 forks source link

Delete records with date intervals #143

Closed joverlee521 closed 8 months ago

joverlee521 commented 8 months ago

Description of proposed changes

Add a new --interval option delete_records.py to filter records with date intervals. This will be used to delete records that uploaded within a certain date interval in preparation for uploading the latest CDC data¹ and for merging https://github.com/nextstrain/fauna/pull/131.

Follows the pattern of the --interval option for tdb/download.py and uses the rethinkdb_date_greater function from vdb/download.py to check for date range in documents.

¹ https://bedfordlab.slack.com/archives/C03KWDET9/p1697750132854499

Checklist