Browse Source

Only count unique groups for contests

spaghetti 8 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
   SELECT
29
   SELECT
30
     u.Username,
30
     u.Username,
31
     u.ID,
31
     u.ID,
32
-    COUNT(*) AS Uploads
32
+    COUNT(DISTINCT tg.ID) AS Uploads
33
   FROM torrents AS t
33
   FROM torrents AS t
34
   LEFT JOIN torrents_group AS tg ON t.groupID=tg.ID
34
   LEFT JOIN torrents_group AS tg ON t.groupID=tg.ID
35
   LEFT JOIN users_main AS u ON t.UserID=u.ID
35
   LEFT JOIN users_main AS u ON t.UserID=u.ID

Loading…
Cancel
Save