Revision | 6f4b34ef2ac08a8de93e0e60cd1b1a41a853be2c (tree) |
---|---|
Zeit | 2020-08-31 02:51:04 |
Autor | HMML <hmml3939@gmai...> |
Commiter | HMML |
Update fetch counter.
@@ -38,6 +38,7 @@ class FetchJmaContentJob < ApplicationJob | ||
38 | 38 | end |
39 | 39 | Rails.logger.info "Fetching forecast entry #{e.title}/#{e.content} (#{e.id}) from #{e.link}" |
40 | 40 | xml = feed.class.get(e.link).body.force_encoding("UTF-8") |
41 | + feed.increment! :content_fetch_count | |
41 | 42 | doc = Nokogiri::XML xml |
42 | 43 | doc.remove_namespaces! |
43 | 44 | _update_fc_by_xml doc |