def write_nodes_proxies_from_db(): import models.node as nm import models.proxy as pr write_nodes(nm.list_all_nodes(), pr.list_all())
def write_nodes_proxies_from_db(): import models.node as nm import models.proxy as pr write_poll([{'host': n.host, 'port': n.port} for n in nm.list_all_nodes()], [{'host': p.host, 'port': p.port} for p in pr.list_all()])
def write_nodes_proxies_from_db(): write_nodes(nm.list_all_nodes(), pr.list_all())