Skip to content

Commit

Permalink
Instead update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
marwahaha committed Mar 4, 2021
1 parent 219da0d commit 725fead
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.markdown
Expand Up @@ -116,7 +116,7 @@ This will initialize the database and Elasticsearch, download the basic feed lay
rake arxiv:oai_update
```

When run for the first time, this will download and index paper metadata from the last day. Subsequent calls will download all metadata since the last time. The production server runs this task every day to keep the database in sync.
When run for the first time, this will download and index paper metadata from the last 7 days. Subsequent calls will download all metadata since the last time. The production server runs this task every day to keep the database in sync.

## Testing

Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/arxiv_oai_update.rake
Expand Up @@ -8,7 +8,7 @@ namespace :arxiv do
last_paper = Paper.order("submit_date desc").first

if last_paper.nil?
fromdate = Time.now-1.days
fromdate = Time.now-7.days
else
fromdate = last_paper.pubdate
end
Expand Down

0 comments on commit 725fead

Please sign in to comment.