From 241467c4b32f8a95f3b2fb4f53e0281901c4a7c2 Mon Sep 17 00:00:00 2001 From: Frank Date: Tue, 23 Jun 2020 02:23:02 +0800 Subject: [PATCH] [fix #1503] override_template cache error (#1505) * Closes #1503 and fixes override_template --- CTFd/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CTFd/__init__.py b/CTFd/__init__.py index 6c199bdf..ce151502 100644 --- a/CTFd/__init__.py +++ b/CTFd/__init__.py @@ -110,7 +110,7 @@ class ThemeLoader(FileSystemLoader): def get_source(self, environment, template): # Check if the template has been overriden if template in self.overriden_templates: - return self.overriden_templates[template], template, True + return self.overriden_templates[template], template, lambda: True # Check if the template requested is for the admin panel if template.startswith("admin/"):