Parcourir la source

select controlled space from transfer service

chenhaiyang il y a 4 ans
Parent
commit
cd79967e4c
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      app/services/transfer.py

+ 2 - 1
app/services/transfer.py

@@ -204,6 +204,7 @@ class EquipmentInfoService(Service):
 
         result = []
         for sp in raw_info.get('data'):
-            result.append({'id': sp.get('id')})
+            if sp.get('isControlled'):
+                result.append({'id': sp.get('id')})
 
         return result