Apply splay bidirectionally
This commit is contained in:
parent
a91b52ea83
commit
b4cc42db2c
1 changed files with 2 additions and 2 deletions
|
|
@ -210,7 +210,7 @@ module FicTracker::Models
|
|||
def refresh_metadata(splay: false)
|
||||
return unless backend && needs_metadata_refresh?
|
||||
|
||||
self.last_metadata_refresh += rand(0..METADATA_REFRESH_INTERVAL) / 10 if splay
|
||||
self.last_metadata_refresh += rand(-METADATA_REFRESH_INTERVAL..METADATA_REFRESH_INTERVAL) / 20 if splay
|
||||
refresh_metadata!
|
||||
end
|
||||
|
||||
|
|
@ -222,7 +222,7 @@ module FicTracker::Models
|
|||
def refresh_content(splay: false)
|
||||
return unless backend && needs_content_refresh?
|
||||
|
||||
self.last_content_refresh += rand(0..CONTENT_REFRESH_INTERVAL) / 10 if splay
|
||||
self.last_content_refresh += rand(-CONTENT_REFRESH_INTERVAL..CONTENT_REFRESH_INTERVAL) / 20 if splay
|
||||
refresh_content!
|
||||
# chapters.each(&:refresh_content)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue