completely removed vip password, left over from old graphs
[p2pool.git] / p2pool / web.py
index d87119e..df393e8 100644 (file)
@@ -186,12 +186,6 @@ def get_web_root(tracker, current_work, current_work2, get_current_txouts, datad
     web_root.putChild('recent_blocks', WebInterface(lambda: recent_blocks))
     web_root.putChild('uptime', WebInterface(lambda: time.time() - start_time))
     
-    try:
-        from . import draw
-        web_root.putChild('chain_img', WebInterface(lambda: draw.get(tracker, current_work.value['best_share_hash']), 'image/png'))
-    except ImportError:
-        print "Install Pygame and PIL to enable visualizations! Visualizations disabled."
-    
     new_root = resource.Resource()
     web_root.putChild('web', new_root)
     
@@ -294,7 +288,7 @@ def get_web_root(tracker, current_work, current_work2, get_current_txouts, datad
     
     class Explorer(resource.Resource):
         def render_GET(self, request):
-            return 'moved to /static/explorer.html'
+            return 'moved to /static/'
         def getChild(self, child, request):
             return self
     new_root.putChild('explorer', Explorer())
@@ -335,7 +329,7 @@ def get_web_root(tracker, current_work, current_work2, get_current_txouts, datad
     }, hd_obj)
     task.LoopingCall(lambda: _atomic_write(hd_path, json.dumps(hd.to_obj()))).start(100)
     @pseudoshare_received.watch
-    def _(work, dead, user, had_vip_pass):
+    def _(work, dead, user):
         t = time.time()
         hd.datastreams['local_hash_rate'].add_datum(t, work)
         if dead: