Skip to content

Commit

Permalink
tidy up some errors that occur on a fresh installation
Browse files Browse the repository at this point in the history
  • Loading branch information
Spine authored and itismadness committed Aug 15, 2021
1 parent 6450a81 commit 2a52175
Show file tree
Hide file tree
Showing 15 changed files with 55 additions and 137 deletions.
4 changes: 4 additions & 0 deletions app/UserRank/AbstractUserRank.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ public function build(): array {
ORDER BY 1
");
$raw = $this->db->collect('bucket');
if (empty($raw)) {
// This occurs only a fresh installation
$raw = [0];
}

/* We now have a list of at most 100 elements. For a number
* of metrics the series will follow a sharp exponential
Expand Down
Loading

0 comments on commit 2a52175

Please sign in to comment.