From 1b5753f1e3cf2b0c67e334018de61271d11bac80 Mon Sep 17 00:00:00 2001 From: HENDRIX-ZT2 <28632661+HENDRIX-ZT2@users.noreply.github.com> Date: Mon, 9 Dec 2024 14:51:49 +0100 Subject: [PATCH] improve walker for ztuac --- __version__.py | 4 ++-- modules/walker.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/__version__.py b/__version__.py index 751553a92..af8821c70 100644 --- a/__version__.py +++ b/__version__.py @@ -1,4 +1,4 @@ # this file is auto-generated by the pre-commit hook increment_version.py VERSION = "2024.12.08" -COMMIT_HASH = "05de2669e" -COMMIT_TIME = "Sun Dec 8 14:29:52 2024 +0100" +COMMIT_HASH = "5fbd4571f" +COMMIT_TIME = "Sun Dec 8 20:05:06 2024 +0100" diff --git a/modules/walker.py b/modules/walker.py index bd866abdb..cc8b8daf9 100644 --- a/modules/walker.py +++ b/modules/walker.py @@ -100,7 +100,7 @@ def generate_hash_table(gui, start_dir): for list_id, attribs in lists.items(): array = getattr(ovl_data, list_id) if attribs: - arrays = {att: array[att] for att in attribs if att in array} + arrays = {att: array[att] for att in attribs if att in array.dtype.fields} else: arrays = {list_id: array} exts = [f".{ext}" for ext in ovl_data.mimes_ext] if "mimes" in list_id else ovl_data.files_ext