From 799dfc18edf39a1631e9720d6d3c2db53244839c Mon Sep 17 00:00:00 2001 From: songtianlun Date: Thu, 23 Jan 2025 01:50:04 +0800 Subject: [PATCH] fix: update weather fetch timing to days - Changed 'last_weather_fetch' and 'last_image_generation' from 10.hours.ago to 10.days.ago for various cities - Affects seed data for cities in multiple countries, including: - Australia - Bangladesh - Brazil - Canada - China - Egypt - France - Germany - India - Japan - Mexico - Nigeria - Pakistan - Russia - Saudi Arabia - Singapore - South Korea - Thailand - Turkey - UK - USA - Vietnam This change ensures that the timestamps reflect a more refined time range for when last weather data was fetched, possibly to enhance performance or consistency in application behavior. --- db/seeds/cities/australia.rb | 8 +- db/seeds/cities/bangladesh.rb | 4 +- db/seeds/cities/brazil.rb | 4 +- db/seeds/cities/canada.rb | 4 +- db/seeds/cities/china.rb | 152 ++++++++++++++++---------------- db/seeds/cities/egypt.rb | 4 +- db/seeds/cities/france.rb | 4 +- db/seeds/cities/germany.rb | 8 +- db/seeds/cities/india.rb | 8 +- db/seeds/cities/japan.rb | 8 +- db/seeds/cities/mexico.rb | 4 +- db/seeds/cities/nigeria.rb | 4 +- db/seeds/cities/pakistan.rb | 4 +- db/seeds/cities/russia.rb | 8 +- db/seeds/cities/saudi_arabia.rb | 4 +- db/seeds/cities/singapore.rb | 4 +- db/seeds/cities/south_korea.rb | 4 +- db/seeds/cities/thailand.rb | 4 +- db/seeds/cities/turkey.rb | 8 +- db/seeds/cities/uk.rb | 4 +- db/seeds/cities/usa.rb | 16 ++-- db/seeds/cities/vietnam.rb | 8 +- 22 files changed, 138 insertions(+), 138 deletions(-) diff --git a/db/seeds/cities/australia.rb b/db/seeds/cities/australia.rb index 8f0468e..a0bcf3c 100644 --- a/db/seeds/cities/australia.rb +++ b/db/seeds/cities/australia.rb @@ -9,8 +9,8 @@ City.create!([ timezone: 'Australia/Sydney', active: true, priority: 80, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Melbourne', @@ -20,7 +20,7 @@ City.create!([ timezone: 'Australia/Melbourne', active: true, priority: 75, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago } ]) diff --git a/db/seeds/cities/bangladesh.rb b/db/seeds/cities/bangladesh.rb index 2d05cd7..04bf214 100644 --- a/db/seeds/cities/bangladesh.rb +++ b/db/seeds/cities/bangladesh.rb @@ -9,7 +9,7 @@ City.create!([ timezone: 'Asia/Dhaka', active: true, priority: 85, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago } ]) diff --git a/db/seeds/cities/brazil.rb b/db/seeds/cities/brazil.rb index 7634c82..02f900c 100644 --- a/db/seeds/cities/brazil.rb +++ b/db/seeds/cities/brazil.rb @@ -9,7 +9,7 @@ City.create!([ timezone: 'America/Sao_Paulo', active: true, priority: 80, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago } ]) diff --git a/db/seeds/cities/canada.rb b/db/seeds/cities/canada.rb index 83f01c0..83299cb 100644 --- a/db/seeds/cities/canada.rb +++ b/db/seeds/cities/canada.rb @@ -7,6 +7,6 @@ City.create!( country: canada, timezone: 'America/Toronto', active: true, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago ) diff --git a/db/seeds/cities/china.rb b/db/seeds/cities/china.rb index 9b51b94..2e7af4c 100644 --- a/db/seeds/cities/china.rb +++ b/db/seeds/cities/china.rb @@ -9,8 +9,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Beijing', @@ -20,8 +20,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Shenzhen', @@ -31,8 +31,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Guangzhou', @@ -42,8 +42,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Chengdu', @@ -53,8 +53,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Tianjin', @@ -64,8 +64,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Wuhan', @@ -75,8 +75,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Dongguan', @@ -86,8 +86,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Chongqing', @@ -97,8 +97,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: "Xi'an", @@ -108,8 +108,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Hangzhou', @@ -119,8 +119,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Foshan', @@ -130,8 +130,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Nanjing', @@ -141,8 +141,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Hong Kong', @@ -152,8 +152,8 @@ City.create!([ timezone: 'Asia/Hong_Kong', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Shenyang', @@ -163,8 +163,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Zhengzhou', @@ -174,8 +174,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Qingdao', @@ -185,8 +185,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Suzhou', @@ -196,8 +196,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Changsha', @@ -207,8 +207,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Jinan', @@ -218,8 +218,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Kunming', @@ -229,8 +229,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Harbin', @@ -240,8 +240,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Shijiazhuang', @@ -251,8 +251,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Hefei', @@ -262,8 +262,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Dalian', @@ -273,8 +273,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Xiamen', @@ -284,8 +284,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Nanning', @@ -295,8 +295,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Changchun', @@ -306,8 +306,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Taiyuan', @@ -317,8 +317,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'New Taipei City', @@ -328,8 +328,8 @@ City.create!([ timezone: 'Asia/Taipei', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Guiyang', @@ -339,8 +339,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Wuxi', @@ -350,8 +350,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Shantou', @@ -361,8 +361,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Ürümqi', @@ -372,8 +372,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Zhongshan', @@ -383,8 +383,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Ningbo', @@ -394,8 +394,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Fuzhou', @@ -405,8 +405,8 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Nanchang', @@ -416,7 +416,7 @@ City.create!([ timezone: 'Asia/Shanghai', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago } ]) diff --git a/db/seeds/cities/egypt.rb b/db/seeds/cities/egypt.rb index 2af57ae..9c19fa3 100644 --- a/db/seeds/cities/egypt.rb +++ b/db/seeds/cities/egypt.rb @@ -9,7 +9,7 @@ City.create!([ timezone: 'Africa/Cairo', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago } ]) diff --git a/db/seeds/cities/france.rb b/db/seeds/cities/france.rb index 6088fc1..a831dba 100644 --- a/db/seeds/cities/france.rb +++ b/db/seeds/cities/france.rb @@ -9,7 +9,7 @@ City.create!([ timezone: 'Europe/Paris', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago } ]) diff --git a/db/seeds/cities/germany.rb b/db/seeds/cities/germany.rb index 52e0f57..6ed3c23 100644 --- a/db/seeds/cities/germany.rb +++ b/db/seeds/cities/germany.rb @@ -9,8 +9,8 @@ City.create!([ timezone: 'Europe/Berlin', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Berlin', @@ -20,7 +20,7 @@ City.create!([ timezone: 'Europe/Berlin', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago } ]) diff --git a/db/seeds/cities/india.rb b/db/seeds/cities/india.rb index 1f1b523..6794c2d 100644 --- a/db/seeds/cities/india.rb +++ b/db/seeds/cities/india.rb @@ -9,8 +9,8 @@ City.create!([ timezone: 'Asia/Kolkata', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Bengaluru', @@ -20,7 +20,7 @@ City.create!([ timezone: 'Asia/Kolkata', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago } ]) diff --git a/db/seeds/cities/japan.rb b/db/seeds/cities/japan.rb index 6601b9c..9b89dfd 100644 --- a/db/seeds/cities/japan.rb +++ b/db/seeds/cities/japan.rb @@ -9,8 +9,8 @@ City.create!([ timezone: 'Asia/Tokyo', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Yokohama', @@ -20,7 +20,7 @@ City.create!([ timezone: 'Asia/Tokyo', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago } ]) diff --git a/db/seeds/cities/mexico.rb b/db/seeds/cities/mexico.rb index 4f8747c..4c6a957 100644 --- a/db/seeds/cities/mexico.rb +++ b/db/seeds/cities/mexico.rb @@ -9,7 +9,7 @@ City.create!([ timezone: 'America/Mexico_City', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago } ]) diff --git a/db/seeds/cities/nigeria.rb b/db/seeds/cities/nigeria.rb index ab44ef6..c2e26bc 100644 --- a/db/seeds/cities/nigeria.rb +++ b/db/seeds/cities/nigeria.rb @@ -9,7 +9,7 @@ City.create!([ timezone: 'Africa/Lagos', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago } ]) diff --git a/db/seeds/cities/pakistan.rb b/db/seeds/cities/pakistan.rb index 6807e4e..514b3e8 100644 --- a/db/seeds/cities/pakistan.rb +++ b/db/seeds/cities/pakistan.rb @@ -9,7 +9,7 @@ City.create!([ timezone: 'Asia/Karachi', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago } ]) diff --git a/db/seeds/cities/russia.rb b/db/seeds/cities/russia.rb index fb15784..67367bb 100644 --- a/db/seeds/cities/russia.rb +++ b/db/seeds/cities/russia.rb @@ -9,8 +9,8 @@ City.create!([ timezone: 'Europe/Moscow', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Sankt Petersburg', @@ -20,7 +20,7 @@ City.create!([ timezone: 'Europe/Moscow', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago } ]) diff --git a/db/seeds/cities/saudi_arabia.rb b/db/seeds/cities/saudi_arabia.rb index cbd407a..ce2ac9d 100644 --- a/db/seeds/cities/saudi_arabia.rb +++ b/db/seeds/cities/saudi_arabia.rb @@ -9,7 +9,7 @@ City.create!([ timezone: 'Asia/Riyadh', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago } ]) diff --git a/db/seeds/cities/singapore.rb b/db/seeds/cities/singapore.rb index bd64433..69ff90c 100644 --- a/db/seeds/cities/singapore.rb +++ b/db/seeds/cities/singapore.rb @@ -9,7 +9,7 @@ City.create!([ timezone: 'Asia/Singapore', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago } ]) diff --git a/db/seeds/cities/south_korea.rb b/db/seeds/cities/south_korea.rb index 7398f3f..04bd9cb 100644 --- a/db/seeds/cities/south_korea.rb +++ b/db/seeds/cities/south_korea.rb @@ -9,7 +9,7 @@ City.create!([ timezone: 'Asia/Seoul', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago } ]) diff --git a/db/seeds/cities/thailand.rb b/db/seeds/cities/thailand.rb index c62c18a..5b8f943 100644 --- a/db/seeds/cities/thailand.rb +++ b/db/seeds/cities/thailand.rb @@ -9,7 +9,7 @@ City.create!([ timezone: 'Asia/Bangkok', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago } ]) diff --git a/db/seeds/cities/turkey.rb b/db/seeds/cities/turkey.rb index 909b944..d9af234 100644 --- a/db/seeds/cities/turkey.rb +++ b/db/seeds/cities/turkey.rb @@ -9,8 +9,8 @@ City.create!([ timezone: 'Europe/Istanbul', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Ankara', @@ -20,7 +20,7 @@ City.create!([ timezone: 'Europe/Istanbul', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago } ]) diff --git a/db/seeds/cities/uk.rb b/db/seeds/cities/uk.rb index 4bd8117..6794ee3 100644 --- a/db/seeds/cities/uk.rb +++ b/db/seeds/cities/uk.rb @@ -9,7 +9,7 @@ City.create!([ timezone: 'Europe/London', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago } ]) diff --git a/db/seeds/cities/usa.rb b/db/seeds/cities/usa.rb index 012d53a..60678fd 100644 --- a/db/seeds/cities/usa.rb +++ b/db/seeds/cities/usa.rb @@ -9,8 +9,8 @@ City.create!([ timezone: 'America/Los_Angeles', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Chicago', @@ -20,8 +20,8 @@ City.create!([ timezone: 'America/Chicago', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'New York City', @@ -31,8 +31,8 @@ City.create!([ timezone: 'America/New_York', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Los Angeles', @@ -42,7 +42,7 @@ City.create!([ timezone: 'America/Los_Angeles', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago } ]) diff --git a/db/seeds/cities/vietnam.rb b/db/seeds/cities/vietnam.rb index fed8650..da6cfbe 100644 --- a/db/seeds/cities/vietnam.rb +++ b/db/seeds/cities/vietnam.rb @@ -9,8 +9,8 @@ City.create!([ timezone: 'Asia/Ho_Chi_Minh', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago }, { name: 'Hanoi', @@ -20,7 +20,7 @@ City.create!([ timezone: 'Asia/Ho_Chi_Minh', active: true, priority: 100, - last_weather_fetch: 10.hours.ago, - last_image_generation: 10.hours.ago + last_weather_fetch: 10.days.ago, + last_image_generation: 10.days.ago } ])