From 33d50f4c38d9bca1e7020fdb3d7f38adf63d5e4e Mon Sep 17 00:00:00 2001 From: Johann POLEWCZYK Date: Tue, 15 Oct 2024 11:11:41 +0200 Subject: [PATCH 1/2] Update search_files.py - Fix path issue with some zip file extractions --- scripts/search_files.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/search_files.py b/scripts/search_files.py index a08be2c9..3a21262b 100755 --- a/scripts/search_files.py +++ b/scripts/search_files.py @@ -268,6 +268,8 @@ def search(self, filepattern, return_on_first_hit=False): except Exception as ex: member = member.lstrip("/") logfunc(f'Could not write file to filesystem, path was {member} ' + str(ex)) + if member.startswith("/"): + member = member[1:] filepath = os.path.join(self.temp_folder, member) if is_platform_windows(): filepath = filepath.replace('/', '\\') From a798e61963a57f6338681c905c1d94e4f153f2e4 Mon Sep 17 00:00:00 2001 From: Johann POLEWCZYK Date: Tue, 15 Oct 2024 11:14:46 +0200 Subject: [PATCH 2/2] Remove Python3.12 warnings --- scripts/html_parts.py | 2 +- scripts/ilapfuncs.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/html_parts.py b/scripts/html_parts.py index b16cda9d..78606076 100644 --- a/scripts/html_parts.py +++ b/scripts/html_parts.py @@ -145,7 +145,7 @@ """ # body_main_data is a placeholder, replace content with real data body_main_data = \ -""" +r"""
All dates and times are in UTC unless stated otherwise.