• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision6f4b34ef2ac08a8de93e0e60cd1b1a41a853be2c (tree)
Zeit2020-08-31 02:51:04
AutorHMML <hmml3939@gmai...>
CommiterHMML

Log Message

Update fetch counter.

Ändern Zusammenfassung

Diff

--- a/app/jobs/fetch_jma_content_job.rb
+++ b/app/jobs/fetch_jma_content_job.rb
@@ -38,6 +38,7 @@ class FetchJmaContentJob < ApplicationJob
3838 end
3939 Rails.logger.info "Fetching forecast entry #{e.title}/#{e.content} (#{e.id}) from #{e.link}"
4040 xml = feed.class.get(e.link).body.force_encoding("UTF-8")
41+ feed.increment! :content_fetch_count
4142 doc = Nokogiri::XML xml
4243 doc.remove_namespaces!
4344 _update_fc_by_xml doc