From 210174b901d2c0f78952113690a03031ec82886f Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Fri, 19 Jul 2024 11:55:44 +0200 Subject: [PATCH] fix photos link to expofiles in logbooks --- parsers/logbooks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/parsers/logbooks.py b/parsers/logbooks.py index b94f597..52c88b4 100644 --- a/parsers/logbooks.py +++ b/parsers/logbooks.py @@ -239,6 +239,9 @@ def tidy_trip_image_urls(text, date): text = text.replace(f' src="/years/{y}//years/{y}/', f' src="/years/{y}/') text = text.replace(f" src='/years/{y}//years/{y}/", f" src='/years/{y}/") + text = text.replace(f' src="/years/{y}/expofiles/', f' src="/expofiles/') + text = text.replace(f" src='/years/{y}/expofiles/", f" src='/expofiles/") + text = text.replace("\t", "") text = text.replace("\n\n\n", "\n\n") return text