#NEWLINE# def no_of_seeders( info_hash ) : #NEWLINE# #INDENT# 'Number of peers with the entire file, aka "seeders".\n    ' #NEWLINE# db = get_db ( ) #NEWLINE# count = 0 #NEWLINE# if ( info_hash in db ) : #NEWLINE# #INDENT# for peer_info in db [ info_hash ] : #NEWLINE# #INDENT# if ( peer_info [ 3 ] == 'completed' ) : #NEWLINE# #INDENT# count += 1 #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return count