Commit d95230fd authored by Michael Rose's avatar Michael Rose

hpff: char: fix holes in id space

parent 2848d971
......@@ -7,7 +7,7 @@ class IndexHpffChapterMetadata
def perform(story_id)
prev_url = "https://www.harrypotterfanfiction.com/storysearch.php?&srt=5&sctlab=1"
story = HpffStory.find_by(id: story_id)
story = HpffStory.where('id > ?', story_id).first
url = "https://www.harrypotterfanfiction.com/viewstory.php?psid=#{story.hpff_id}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment