rabin 6 years ago
parent
commit
a147026484
1 changed files with 1 additions and 1 deletions
  1. 1 1
      front/api/main.py

+ 1 - 1
front/api/main.py

@@ -44,7 +44,7 @@ class index_path(Load):
 			self.data['msg'] = str(99) + '+'
 			
 		self.data['pic'] = []
-		pic = self.service('common').list('device_info', state=True, search={'hardware_type':6, 'farm_id':self.data['info']['farm_id']})
+		pic = self.service('common').list('device_info', state=True, search={'hardware_type':6, 'farm_id':Demeter.config['setting']['farm']})
 		if pic:
 			for key, value in enumerate(pic):
 				pic[key]['cdates'] = Demeter.date(value['cdate'])