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)
|
def refresh_metadata(splay: false)
|
||||||
return unless backend && needs_metadata_refresh?
|
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!
|
refresh_metadata!
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -222,7 +222,7 @@ module FicTracker::Models
|
||||||
def refresh_content(splay: false)
|
def refresh_content(splay: false)
|
||||||
return unless backend && needs_content_refresh?
|
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!
|
refresh_content!
|
||||||
# chapters.each(&:refresh_content)
|
# chapters.each(&:refresh_content)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue