Browse Source

Don't give BP for users' duplicate torrents

ElectraHeart 7 years ago
parent
commit
9964bbf9f2
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      sections/user/bprates.php

+ 3
- 2
sections/user/bprates.php View File

@@ -34,7 +34,8 @@
34 34
 		LEFT JOIN torrents_group AS tg ON t.GroupID=tg.ID
35 35
 		LEFT JOIN torrents_artists AS ta ON t.GroupID=ta.GroupID
36 36
 		LEFT JOIN artists_group AS ag ON ta.ArtistID=ag.ArtistID
37
-		WHERE x.uid = $UserID AND x.active=1");
37
+		WHERE x.uid = $UserID AND x.active=1 AND x.remaining=0
38
+		GROUP BY x.fid, x.ip");
38 39
 	while ($result = $DB->next_record()) {
39 40
 		$activeTorrents[] = $result;
40 41
 	}
@@ -69,7 +70,7 @@
69 70
 				<td><?=$torrent['Artist'].' - '.$torrent['Album'].' - '.$torrent['Recorded'].' | '.$torrent['Codec'].' / '.$torrent['Media'].' / '.$torrent['Container'].' / '.$torrent['Resolution'].' / '.$torrent['AudioFormat']; ?></td>
70 71
 				<td><?=Format::get_size($torrent['Size'])?></td>
71 72
 				<td><?php echo $torrent['Seeders']; ?></td>
72
-				<td><?php echo round($torrent['days'], 2); ?> days (<?=$torrent['hours']?>)</td>
73
+				<td><?php echo round($torrent['days'], 2); ?> days</td>
73 74
 				<td><?=round($points, 4)?></td>
74 75
 			</tr>
75 76
 <?php } ?>

Loading…
Cancel
Save