Only sync stories needing it
This commit is contained in:
parent
a1a7cc80cf
commit
ceec140d99
1 changed files with 2 additions and 2 deletions
|
|
@ -14,8 +14,8 @@ class FicTracker::Cli < Thor
|
|||
should_render = options[:render].nil? ? FicTracker::Config.dig(:cli, :render, default: false) : options[:render]
|
||||
prepare_render! if should_render
|
||||
|
||||
puts "Updating#{ should_render ? ' and rendering' : ''} all stories."
|
||||
FicTracker::Models::Story.each do |story|
|
||||
puts "Updating#{ should_render ? ' and rendering' : ''} stories."
|
||||
FicTracker::Models::Story.needing_content_refresh.each do |story|
|
||||
puts " Updating #{story} ..."
|
||||
before = story.etag
|
||||
story.ensure_fully_loaded
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue