today_ai_weather/app/admin
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
..
admin_users.rb feat: add admin management for various entities 2025-01-28 01:15:29 +08:00
ahoy_dashboard.rb refactor: update popularity scope and controller logic 2025-02-12 17:54:57 +08:00
ahoy_events.rb refactor: update admin columns for Ahoy models 2025-02-05 16:57:37 +08:00
ahoy_management.rb chore: clean up trailing whitespace and formatting 2025-01-27 00:43:36 +08:00
ahoy_visits.rb refactor: update admin columns for Ahoy models 2025-02-05 16:57:37 +08:00
cities.rb feat: add admin management features for cities 2025-02-11 17:40:13 +08:00
countries.rb feat: add admin management features for cities 2025-02-11 17:40:13 +08:00
dashboard.rb feat: enhance Ahoy dashboard city listings 2025-02-05 15:12:29 +08:00
regions.rb feat: add admin management features for cities 2025-02-11 17:40:13 +08:00
sidekiq_jobs.rb feat: refactor code organization and query complexity 2025-01-28 01:44:07 +08:00
states.rb fix: remove trailing whitespace in admin files 2025-02-11 17:59:44 +08:00
subregions.rb fix: remove trailing whitespace in admin files 2025-02-11 17:59:44 +08:00
users.rb fix: remove trailing whitespace in admin files 2025-02-11 17:59:44 +08:00
weather_arts.rb feat: add admin management for various entities 2025-01-28 01:15:29 +08:00