浏览代码

Split off the first parts

Yentl Van Tendeloo 8 年之前
父节点
当前提交
dc9ae962f8
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      interface/CBD/main.py

+ 3 - 3
interface/CBD/main.py

@@ -64,11 +64,11 @@ def poll(address):
     while 1:
         returnvalue = urllib2.urlopen(urllib2.Request(address, urllib.urlencode({"op": "get_output", "username": "CBD_env"}))).read()
         if returnvalue.startswith("AVAILABLE:"):
-            working_available_attrs.append(returnvalue)
+            working_available_attrs.append(returnvalue.split(":", 1)[1])
         elif returnvalue.startswith("ATTRIBUTE:"):
-            working_attribute.append(returnvalue)
+            working_attribute.append(returnvalue.split(":", 1)[1])
         elif returnvalue.startswith("SIMULATION:"):
-            working_simulation.append(returnvalue)
+            working_simulation.append(returnvalue.split(":", 1)[1])
         elif returnvalue.startswith("FINISH_AVAILABLE"):
             available_attrs.append(working_available_attrs)
             working_available_attrs = []