Adding ability to hide challenges

This commit is contained in:
CodeKevin
2016-04-20 14:22:17 -04:00
parent f4964dffff
commit 6308165dea
4 changed files with 46 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ def chals():
else:
return redirect('/')
if can_view_challenges():
chals = Challenges.query.add_columns('id', 'name', 'value', 'description', 'category').order_by(Challenges.value).all()
chals = Challenges.query.filter(Challenges.hidden!=True).add_columns('id', 'name', 'value', 'description', 'category').order_by(Challenges.value).all()
json = {'game':[]}
for x in chals: