return False
- def __insert_peer(self, peer_id, info_hash, address6=None, port6=None, address4=None, port4=None, **kwargs):
- self.db.execute("INSERT INTO tracker(id, hash, address6, port6, address4, port4) \
- VALUES(%s, %s, %s, %s, %s, %s)", peer_id, info_hash, address6, port6, address4, port4)
+ def __insert_peer(self, peer_id, info_hash, address6=None, port6=None, address4=None, port4=None, left_data=0, **kwargs):
+ self.db.execute("INSERT INTO tracker(id, hash, address6, port6, address4, port4, left_data) \
+ VALUES(%s, %s, %s, %s, %s, %s, %s)", peer_id, info_hash, address6, port6, address4, port4, left_data)
def __update_peer(self, peer_id, info_hash, address6=None, port6=None,
address4=None, port4=None, downloaded=None, uploaded=None, left_data=None):