rabin 8 vuotta sitten
vanhempi
commit
9ecf733904
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      front/page/__load__.py

+ 1 - 1
front/page/__load__.py

@@ -72,7 +72,7 @@ class Device(object):
 			search['gateway_id'] = id
 			self.data['device'] = Device.get(self, search=search)
 			if self.data['device_cur'] in ('stat', 'log'):
-				self.data['pic'] = Device.get(self, search={'hardware_type':6})
+				self.data['pic'] = Device.get(self, search={'gateway_id':id, 'hardware_type':6})
 
 		elif type == 'page':
 			self.data['info'] = self.service('common').one('device_page', id=id)