Browse Source

Only count unique groups for contests

spaghetti 2 years ago
parent
commit
5bee3511bb
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      sections/contest/contest.php

+ 1
- 1
sections/contest/contest.php View File

@@ -29,7 +29,7 @@ if (!($Scores = $Cache->get_value("contest_scores"))) {
29 29
   SELECT
30 30
     u.Username,
31 31
     u.ID,
32
-    COUNT(*) AS Uploads
32
+    COUNT(DISTINCT tg.ID) AS Uploads
33 33
   FROM torrents AS t
34 34
   LEFT JOIN torrents_group AS tg ON t.groupID=tg.ID
35 35
   LEFT JOIN users_main AS u ON t.UserID=u.ID

Loading…
Cancel
Save