Skip to content

Commit

Permalink
Merge pull request ppy#10970 from Swekka/recent-scores-24h
Browse files Browse the repository at this point in the history
Limit recent scores to 24h again
  • Loading branch information
nanaya authored Feb 7, 2024
2 parents 18a2d5d + a51efb9 commit 3103311
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Models/Solo/Score.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ public function scopeRecent(Builder $query, string $ruleset, bool $includeFails)
->default()
->forRuleset($ruleset)
->includeFails($includeFails)
// 2 days (2 * 24 * 3600)
->where('unix_updated_at', '>', time() - 172_800);
// 1 day (24 * 3600)
->where('unix_updated_at', '>', time() - 86_400);
}

public function scopeVisibleUsers(Builder $query): Builder
Expand Down

0 comments on commit 3103311

Please sign in to comment.