Fixing ctf_ended function
Fixing ctf_ended function

mschwager/CTFd,liam-middlebrook/CTFd,gibsonnathan/CTFd,LosFuzzys/CTFd,liam-middlebrook/CTFd,isislab/CTFd,LosFuzzys/CTFd,CTFd/CTFd,jaboyles/CFTD_Senior_Project,gibsonnathan/CTFd,isislab/CTFd,ajvpot/CTFd,ajvpot/CTFd,mschwager/CTFd,jaboyles/CFTD_Senior_Project,mschwager/CTFd,CTFd/CTFd,isislab/CTFd,jaboyles/CFTD_Senior_Project,ajvpot/CTFd,liam-middlebrook/CTFd,CTFd/CTFd,CTFd/CTFd,liam-middlebrook/CTFd,LosFuzzys/CTFd,ajvpot/CTFd,gibsonnathan/CTFd,gibsonnathan/CTFd,jaboyles/CFTD_Senior_Project,isislab/CTFd,LosFuzzys/CTFd,mschwager/CTFd