Browse Source

fix missing import

laiwei 8 years ago
parent
commit
56fcea39cf
2 changed files with 2 additions and 1 deletions
  1. 1 1
      rrd/view/api.py
  2. 1 0
      rrd/view/portal/api.py

+ 1 - 1
rrd/view/api.py

@@ -23,7 +23,7 @@ def api_endpoints():
         return json.dumps(ret)
 
     h = {"Content-type": "application/json"}
-    r = corelib.auth_requests("GET", config.API_ADDR + "/graph/endpoint?q=%s&limit=%s&tags=%s" %(q, limit, tags), headers=h)
+    r = corelib.auth_requests("GET", config.API_ADDR + "/graph/endpoint?q=%s&limit=%s&tags=%s" %(q, limit, ",".join(tags)), headers=h)
     if r.status_code != 200:
         abort(400, r.text)
 

+ 1 - 0
rrd/view/portal/api.py

@@ -11,6 +11,7 @@ from rrd.model.portal.host_group import HostGroup
 from rrd.model.portal.host import Host
 from rrd.model.portal.expression import Expression
 from rrd.model.portal.strategy import Strategy
+from rrd import corelib, config
 
 from rrd.utils.logger import logging
 log = logging.getLogger(__file__)