Skip to content
Snippets Groups Projects
Unverified Commit 8e1cd6af authored by Max Adamo's avatar Max Adamo
Browse files

fix: update condition to check for "_expired.json" suffix in renderPage function

parent 8fcde66b
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ func renderPage(w http.ResponseWriter, req *http.Request) {
outputDir := filepath.Join(webDir, provider)
serveFile := filepath.Join(webDir, req.URL.Path)
suffix := ""
if strings.HasSuffix(serveFile, "/by_date.html") {
if strings.HasSuffix(serveFile, "_expired.json") {
suffix = "_expired"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment