Confused about the flow of electricity through diode


I’ve been doing project 2 and as far as I understand, the flow of electricity in a diode goes only from the long leg to the shorter but in this project it’s doing the opposite? I’m clearly missing something. The picture I’ve attached is as I believe the direction of electricity is. The longer leg is clearly connected to the yellow cables to the ground.