From c0f95e134c68d4302c1d4556764138541cac6532 Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Sun, 2 Apr 2023 17:10:05 +0000 Subject: [PATCH] :skull: --- gallery/utils/metadata/__init__.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gallery/utils/metadata/__init__.py b/gallery/utils/metadata/__init__.py index 89c2a63..801f4d2 100644 --- a/gallery/utils/metadata/__init__.py +++ b/gallery/utils/metadata/__init__.py @@ -67,14 +67,17 @@ class Metadata: } # Thanks chatGPT xP - # pylint: disable=E0602 for key, value in encoded_exif.items(): for mapping_name, mapping_val in EXIF_MAPPING: if key in mapping_val: if len(mapping_val[key]) == 2: + # the helper function works, so not sure why it triggers pylint exif[mapping_name][mapping_val[key][0]] = { 'raw': value, - 'formatted': getattr(helpers, mapping_val[key][1])(value), + 'formatted': ( + getattr(helpers, mapping_val[key][1]) # pylint: disable=E0602 + (value) + ), } else: exif[mapping_name][mapping_val[key][0]] = {