Podium added and working, logo and website of campuses added in campus model #76
|
@ -4,9 +4,7 @@ register = template.Library()
|
|||
|
||||
@register.simple_tag
|
||||
def get_chall_by_lang(chall, lang):
|
||||
print(chall.slug)
|
||||
filepath = "ctfs/templates/challenges/"+ lang + "/" + chall.slug + ".html"
|
||||
print(filepath)
|
||||
try:
|
||||
with open(filepath) as fp:
|
||||
return fp.read()
|
||||
|
|
Loading…
Reference in New Issue