Update eos and direct price requests to proxy too

This commit is contained in:
DarkPhoenix
2011-12-24 00:23:28 +04:00
parent 0a1ac49c97
commit 6036387b7b
2 changed files with 7 additions and 3 deletions

2
eos

Submodule eos updated: 2d9bb053ea...7afaf9fb11

View File

@@ -26,7 +26,7 @@ import Queue
import eos.db
import eos.types
from service.settings import SettingsProvider
from service.settings import SettingsProvider, ProxySettings
try:
from collections import OrderedDict
@@ -79,7 +79,11 @@ class PriceWorkerThread(threading.Thread):
# Grab prices, this is the time-consuming part
if len(requests) > 0:
eos.types.Price.fetchPrices(*requests)
proxy = ProxySettings.getInstance().getProxySettings()
if proxy is not None:
proxy = "{0}:{1}".format(*proxy)
print proxy
eos.types.Price.fetchPrices(requests, proxy=proxy)
wx.CallAfter(callback)
queue.task_done()