def miner(): #Check if this is a form submission handle_miner_post(flask.request.form) #Get a list of currently configured miners miners = bitHopper.Configuration.Miners.get_miners() return flask.render_template('miner.html', miners=miners)
def pool(): handle_worker_post(flask.request.form) pools = bitHopper.Tracking.Tracking.build_dict() percentage = {} priority = {} for pool in pools: priority[pool] = bitHopper.Configuration.Pools.get_priority(pool) percentage[pool] = bitHopper.Configuration.Pools.get_percentage(pool) return flask.render_template('pool.html', pools = pools, percentage=percentage, priority=priority)
def worker(): #Check if this is a form submission handle_worker_post(flask.request.form) #Get a list of currently configured workers pools_workers = {} for pool in btcnet_info.get_pools(): if pool.name is None: logging.debug('Ignoring a Pool. If no pools apear on /worker please update your version of btcnet_info') continue pools_workers[pool.name] = bitHopper.Configuration.Workers.get_worker_from(pool.name) return flask.render_template('worker.html', pools = pools_workers)
def pool(): handle_worker_post(flask.request.form) pools = bitHopper.Tracking.Tracking.build_dict() percentage = {} priority = {} for pool in pools: priority[pool] = bitHopper.Configuration.Pools.get_priority(pool) percentage[pool] = bitHopper.Configuration.Pools.get_percentage(pool) return flask.render_template('pool.html', pools=pools, percentage=percentage, priority=priority)
def worker(): #Check if this is a form submission handle_worker_post(flask.request.form) #Get a list of currently configured workers pools_workers = {} for pool in btcnet_info.get_pools(): if pool.name is None: logging.debug( 'Ignoring a Pool. If no pools apear on /worker please update your version of btcnet_info' ) continue pools_workers[ pool.name] = bitHopper.Configuration.Workers.get_worker_from( pool.name) return flask.render_template('worker.html', pools=pools_workers)
def stats(): return flask.render_template('stats.html')