2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-25 16:51:54 +00:00

fix photos link to expofiles in logbooks

This commit is contained in:
Philip Sargent 2024-07-19 11:55:44 +02:00
parent c27a4f0ddc
commit 210174b901

View File

@ -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