today_ai_weather/app/workers
songtianlun 0a6926421f refactor: update popularity scope and controller logic
- Change `by_popularity` method in `City` model to use `start_time` for filtering views.
- Update `by_popularity` in `WeatherArt` model to limit results and incorporate the correct popularity calculation.
- Adjust `HomeController` to define `@popular_shuffle_arts` and `@latest_arts` with appropriate scopes.

These changes improve the accuracy of popularity retrieval for both cities and weather arts, simplifying the logic in the controller and leveraging updated model methods for performance.
2025-02-12 17:54:57 +08:00
..
add_watermark_to_weather_art_worker.rb fix: correct handling of watermark attachment check 2025-02-05 14:57:28 +08:00
batch_generate_weather_arts_worker.rb refactor: update popularity scope and controller logic 2025-02-12 17:54:57 +08:00
clean_ahoy_data_worker.rb chore: clean up trailing whitespace and formatting 2025-01-27 00:43:36 +08:00
generate_weather_art_worker.rb refactor: tidy up code style and remove unused fields 2025-01-24 00:25:06 +08:00
refresh_sitemap_worker.rb feat: add sitemap functionality 2025-01-26 00:07:44 +08:00