Someone forgot to remove prints in a file...
This commit is contained in:
parent
891c2530e6
commit
9b2da1e2cc
|
@ -4,9 +4,7 @@ register = template.Library()
|
||||||
|
|
||||||
@register.simple_tag
|
@register.simple_tag
|
||||||
def get_chall_by_lang(chall, lang):
|
def get_chall_by_lang(chall, lang):
|
||||||
print(chall.slug)
|
|
||||||
filepath = "ctfs/templates/challenges/"+ lang + "/" + chall.slug + ".html"
|
filepath = "ctfs/templates/challenges/"+ lang + "/" + chall.slug + ".html"
|
||||||
print(filepath)
|
|
||||||
try:
|
try:
|
||||||
with open(filepath) as fp:
|
with open(filepath) as fp:
|
||||||
return fp.read()
|
return fp.read()
|
||||||
|
|
Loading…
Reference in New Issue