Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. from silo_common.database import local_db
  2. import silo_common.snippets as em7_snippets
  3. from em7_api_support.session import Session
  4.  
  5.  
  6. dbc = local_db()
  7. api_session = Session.build(dbc)
  8.  
  9. #Get 3G aligned devices
  10. sql = 'select did from master.map_dynamic_app_device_cred where app_id = 1669'
  11. threeG = dbc.autofetch_column(sql)
  12.  
  13. #Get 4G aligned devices
  14. sql = 'select * from master.map_dynamic_app_device_cred where app_id = 1677'
  15. fourG = dbc.autofetch_column(sql)
  16.  
  17. did_list = [i for i in threeG if i not in fourG]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement