From: Michael Tremer Date: Fri, 17 Sep 2010 16:14:06 +0000 (+0200) Subject: tracker: Minor fixes. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ee6887f42751957b8a66e9d0a382f40146ed3752;p=ipfire.org.git tracker: Minor fixes. --- diff --git a/www/webapp/torrent.py b/www/webapp/torrent.py index b005dc74..49d94959 100644 --- a/www/webapp/torrent.py +++ b/www/webapp/torrent.py @@ -17,7 +17,7 @@ def decode_hex(s): return "".join(ret) class Tracker(object): - id = "The IPFire Torrent Tracker" + id = "The%20IPFire%20Torrent%20Tracker" # Intervals interval = 60*60 @@ -29,7 +29,7 @@ class Tracker(object): self.db = tornado.database.Connection( host="172.28.1.150", database="tracker", - user="tracker", + user="webapp", ) def _fetch(self, hash, limit=None, random=False, completed=False, no_peer_id=False): @@ -40,6 +40,8 @@ class Tracker(object): if completed: query += " AND left_data = 0" + else: + query += " AND left_data != 0" if random: query += " ORDER BY RAND()"