|
@@ -73,7 +73,7 @@ class index_path(Load):
|
|
|
type = self.service('common').one('device_type', id=value['type_id'])
|
|
|
self.data['device'][key]['unit'] = type['unit']
|
|
|
|
|
|
- self.data['pic'] = {}
|
|
|
+ self.data['pic'] = []
|
|
|
pic = self.service('common').list('device_info', state=True, search={'hardware_type':6, 'gateway_id':id})
|
|
|
if pic:
|
|
|
for key, value in enumerate(pic):
|