you can use enumerate to accomplish this more simply:
for i, p in enumerate(self.progress):
    if p.repo_id == report.repo_id: