Fix typecasting bug when using utils.get_config to get theme (#1298)

* Fix a type issue with config values. Related to #929
bulk-clear-sessions
Alan 2020-03-30 01:17:29 -04:00 committed by GitHub
parent d80051bcda
commit 76af4419b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ class ThemeLoader(FileSystemLoader):
return super(ThemeLoader, self).get_source(environment, template) return super(ThemeLoader, self).get_source(environment, template)
# Load regular theme data # Load regular theme data
theme = utils.get_config("ctf_theme") theme = str(utils.get_config("ctf_theme"))
template = "/".join([theme, "templates", template]) template = "/".join([theme, "templates", template])
return super(ThemeLoader, self).get_source(environment, template) return super(ThemeLoader, self).get_source(environment, template)