fix: update weather fetch timing to days
Some checks are pending
CI / scan_ruby (push) Waiting to run
CI / lint (push) Waiting to run
CI / test (push) Waiting to run
Docker / docker (push) Waiting to run

- 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.
This commit is contained in:
songtianlun 2025-01-23 01:50:04 +08:00
parent a2c75ba3c2
commit 799dfc18ed
22 changed files with 138 additions and 138 deletions

View File

@ -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
}
])

View File

@ -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
}
])

View File

@ -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
}
])

View File

@ -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
)

View File

@ -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
}
])

View File

@ -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
}
])

View File

@ -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
}
])

View File

@ -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
}
])

View File

@ -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
}
])

View File

@ -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
}
])

View File

@ -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
}
])

View File

@ -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
}
])

View File

@ -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
}
])

View File

@ -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
}
])

View File

@ -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
}
])

View File

@ -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
}
])

View File

@ -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
}
])

View File

@ -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
}
])

View File

@ -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
}
])

View File

@ -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
}
])

View File

@ -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
}
])

View File

@ -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
}
])