Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Retrieve fatalities by report number #39

Open
rgreinho opened this issue Feb 12, 2019 · 0 comments
Open

Retrieve fatalities by report number #39

rgreinho opened this issue Feb 12, 2019 · 0 comments
Labels
kind/feature New feature or request

Comments

@rgreinho
Copy link
Member

Issue Type

  • Feature request

Current Behavior

The fatalities are only filtered by the date of the accident.

Expected Behavior

As a user I would like to retrieve the fatality reports since the last one I read.

For instance, I want the fatality reports since report #3 of 2019.

Possible Solution

Update the --from and --to syntax to be able to understand the report numbers.

  • The report number is denoted by a pound sign (#).
    • If there is no pound sign, the number is considered to be a date.
  • The year can be specified. If omitted, the current year is used
  • Format [year:]#report_number
# Retrieve the report from the third one of the current year.
scrapd retrieve --from #3 

# Retrieve the report from the third one to the fifth one of the current year.
scrapd retrieve --from #3 --to #5

# Retrieve the report from the third one of 2018 to the 50th one of 2018.
scrapd retrieve --from 2018:#3 --to 2018:#50
@rgreinho rgreinho added kind/feature New feature or request and removed enhancement labels Apr 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant