|
@@ -31,7 +31,8 @@ class batch_path(Load):
|
|
|
device = self.service('common').one('device_gateway', id=value['gateway_id'])
|
|
|
self.data['list'][key]['device'] = device['name']
|
|
|
land = self.service('common').one('farm_work_land', id=value['land_id'])
|
|
|
- self.data['list'][key]['land'] = land['name']
|
|
|
+ if land:
|
|
|
+ self.data['list'][key]['land'] = land['name']
|
|
|
self.commonView('list')
|
|
|
|
|
|
class batch_update_path(Load):
|