It appears you flagged this:
You are using two if statements one after the other in the running loop. Try using an if and elif statement instead.
It is an answer - it may be wrong / not very good, but it is an answer in the sense it's not "Oh - I got this problem as well - did you fix it?" or "Hi, do you like dogs?" etc...
You're of course welcome to downvote such answers.
In answer to comment:
Yes, but why is it a helpful flag??
It's not - "helpful flags" is just the terminology used on your profile page. The flag will normally have next to it "helpful" (as in it was helpful), "declined" (it wasn't deemed helpful) as yours shows, or possibly "disputed" which because of the way the system works means opposing flags from multiple users can't be split helpful/declined appropriately, so end up "disputed"