Преглед на файлове

Break as soon as there's a thread with no new posts

master
Dylan Baker преди 4 години
родител
ревизия
ad763890e5
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1
    2
      db/scrape.rb

+ 1
- 2
db/scrape.rb Целия файл

@@ -112,8 +112,7 @@ def scrape(first: 0, last: 0)
112 112
 
113 113
       last_post = posts.last
114 114
       unless db.from(:posts).first(remote_id: last_post[:remote_id]).nil?
115
-        puts '  Up to date, skipping'
116
-        next
115
+        break
117 116
       end
118 117
 
119 118
       posts_count = posts.size

Loading…
Отказ
Запис