Browse Source

minor bug fix

steve 8 năm trước cách đây
mục cha
commit
f2bdf24e89
2 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 2 2
      src/api/index.py
  2. 1 1
      src/utils/workers.py

+ 2 - 2
src/api/index.py

@@ -97,7 +97,7 @@ def procs(id):
 @app.route('/sandbox')
 def sandbox():
 	global CONFIG
-	print CONFIG['monitor']
+	
 	if 'sandbox' in CONFIG['monitor']:
 		#handler = HANDLERS['sandbox']['class']
 		#conf = HANDLERS['sandbox']['config']
@@ -110,7 +110,7 @@ def sandbox():
 			handler.init(conf[id])
 			r.append (dict(handler.composite(),**{"label":id}))
 	else:
-		print 'Oops'
+		
 		r = []
 
 

+ 1 - 1
src/utils/workers.py

@@ -138,7 +138,7 @@ class ThreadManager:
 	@staticmethod
 	def stop():
 		for id in ThreadManager.Pool :
-			thread = Pool[id]
+			thread = ThreadManager.Pool[id]
 			thread.stop()
 	@staticmethod
 	def status():