- USER_IDS = (DATABASE[(USER_DATA.contains(r.SUBLIST) && STATUS == "CONF")].ID).getall();
- for each n in USER_IDS
- {
- if(!UNIQUE_IDS.contains(n))
- {
- UNIQUE_IDS.add(n);
- }
- }
What I am proposing is a simple function that takes a list, and removes all duplicates:
- USER_IDS = (DATABASE[(USER_DATA.contains(r.SUBLIST) && STATUS == "CONF")].ID).getall();
- USER_IDS.removedups();
It should work for both string and integer lists.
John M. Whitney