I created a dictionary with repo_id as a key instead. I think it works better with the logic.