-
Notifications
You must be signed in to change notification settings - Fork 12
Description
We are currently using EmmaPython to keep MyEmma in sync with our CRM for our various audiences. The basic process is that it retrieves the set of addresses for a given audience from our CRM, retrieves the contacts currently in the audience from MyEmma, compares the two lists then adds, removes, and creates contacts as needed.
I noticed that it seemed to be adding the same contacts to some of these groups every day. When I debugged my code, I found that the number of contacts in the larger audiences(low thousands) was less than the total number of active contacts MyEmma reported through the web interface. I checked the count using len(group.members) after doing a fetch_all on it. As an example, one group has 3532 active contacts according to MyEmma but a len(group.members) returns only 3452.
Is something off with fetch_all, perhaps causing it to stop fetching before it has retrieved all of the contacts?