Преглед на файлове

select controlled space from transfer service

chenhaiyang преди 4 години
родител
ревизия
cd79967e4c
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  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