More fixes

master
haddaway 2012-10-21 14:02:38 -07:00
parent f55e5a6550
commit 97bcabd19f
1 changed files with 3 additions and 1 deletions

View File

@ -22,8 +22,10 @@ def get_web_site(visual, site):
result_list = string_into_even_peices(result, 200) result_list = string_into_even_peices(result, 200)
site_xid = os.urandom(8) site_xid = os.urandom(8)
length = "%0*d" % (4, len(result_list)) length = "%0*d" % (4, len(result_list))
for index, item in enumerate(result_list): for index, item in enumerate(result_list):
msg = ToorMessage(item, None, ToorChatProtocol.get_web_response_type(), site_xid, str(index), length) index = "%0*d" % (4, index)
msg = ToorMessage(item, None, ToorChatProtocol.get_web_response_type(), site_xid, index, length)
visual.protocol.send_message(msg) visual.protocol.send_message(msg)
# visual.message_queue.append(msg) # visual.message_queue.append(msg)
except Exception as e: except Exception as e: