more strict integer checks

This commit is contained in:
Kyle Drake 2024-02-17 10:27:02 -06:00
parent 1d87b87e62
commit f7e65ec61b
10 changed files with 30 additions and 21 deletions

View file

@ -50,7 +50,7 @@ class Event < Sequel::Model
def self.global_dataset(current_page=1, limit=DEFAULT_GLOBAL_LIMIT)
news_feed_default_dataset.
paginate(current_page, 100).
paginate(current_page.to_i, 100).
exclude(is_nsfw: true).
exclude(is_crashing: true).
where{views > GLOBAL_VIEWS_MINIMUM}.