From 4b1989153b1a587259119025ee446ab34a6ca41c Mon Sep 17 00:00:00 2001 From: Mark Lugar <14322382+araglu@users.noreply.github.com> Date: Mon, 30 Dec 2024 10:48:56 -0600 Subject: [PATCH] Add comment for is_file Co-authored-by: Nathan Swain --- tethys_apps/templatetags/site_settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tethys_apps/templatetags/site_settings.py b/tethys_apps/templatetags/site_settings.py index 6d2c493ef..61ce24644 100644 --- a/tethys_apps/templatetags/site_settings.py +++ b/tethys_apps/templatetags/site_settings.py @@ -32,6 +32,7 @@ def load_custom_css(var): var = var.lstrip("/") try: + # Check if var is a path to a file, if so return a link tag to the file if (Path(settings.STATIC_ROOT) / var).is_file() or static_finder.find(var): return f''