This commit is contained in:
Dobromir Popov
2024-10-28 17:15:41 +02:00
parent 885eb523f6
commit 8f6a788717
5 changed files with 145 additions and 143 deletions

View File

@ -304,7 +304,7 @@ def get_latest_log_file(wh:bool):
# files = [f for f in os.listdir(log_dir) if os.path.isfile(os.path.join(log_dir, f))]
# filter files mask log_20241005_004103_143116.json
if wh:
files = [f for f in os.listdir(log_dir) if os.path.isfile(os.path.join(log_dir, f)) and f.startswith('wh-')]
files = [f for f in os.listdir(log_dir) if os.path.isfile(os.path.join(log_dir, f)) and f.startswith('wh_')]
else:
files = [f for f in os.listdir(log_dir) if os.path.isfile(os.path.join(log_dir, f)) and f.startswith('log_')]