From 76af4419b6032f2456e55cea03f4e0bd89959616 Mon Sep 17 00:00:00 2001 From: Alan Date: Mon, 30 Mar 2020 01:17:29 -0400 Subject: [PATCH] Fix typecasting bug when using utils.get_config to get theme (#1298) * Fix a type issue with config values. Related to #929 --- CTFd/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CTFd/__init__.py b/CTFd/__init__.py index a076722..b922a7c 100644 --- a/CTFd/__init__.py +++ b/CTFd/__init__.py @@ -96,7 +96,7 @@ class ThemeLoader(FileSystemLoader): return super(ThemeLoader, self).get_source(environment, template) # Load regular theme data - theme = utils.get_config("ctf_theme") + theme = str(utils.get_config("ctf_theme")) template = "/".join([theme, "templates", template]) return super(ThemeLoader, self).get_source(environment, template)