Celso says he showed you the launchpadlib code snippet that uses a different way to get the failed builds. He and I both think that this is more efficient that the current way you're using, but is still not optimal because you end up throwing away some builds that were downloaded since they no longer have published sources.
So, I will change the description on this bug to reflect that series.getBuildRecords() needs to also filter on active builds (i.e. published ones).
William
Celso says he showed you the launchpadlib code snippet that uses a different way to get the failed builds. He and I both think that this is more efficient that the current way you're using, but is still not optimal because you end up throwing away some builds that were downloaded since they no longer have published sources.
So, I will change the description on this bug to reflect that series. getBuildRecords () needs to also filter on active builds (i.e. published ones).