From 790080f2a0d9d4709da744167954448dc1b76382 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Sun, 22 May 2022 12:49:00 +0100 Subject: [PATCH] Fix Cache Buster --- cps/cache_buster.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cps/cache_buster.py b/cps/cache_buster.py index 0a036b63..eb6b7433 100644 --- a/cps/cache_buster.py +++ b/cps/cache_buster.py @@ -76,11 +76,11 @@ def init_cache_busting(app): if file_hash: values["q"] = file_hash - def debusting_static_view(file_name): + def debusting_static_view(filename): """ Serve a request for a static file having a busted name. """ - return original_static_view(filename=unbust_filename(file_name)) + return original_static_view(filename=unbust_filename(filename)) # Replace the default static file view with our debusting view. original_static_view = app.view_functions["static"]