From 5b129fee8f534004c6b500c798802ab3236579b3 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 20 Sep 2025 22:44:48 +0300 Subject: [PATCH] bugfix --- core/models/wallets.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/models/wallets.py b/core/models/wallets.py index f1a82638f..2055b481d 100644 --- a/core/models/wallets.py +++ b/core/models/wallets.py @@ -431,11 +431,12 @@ class Wallet(models.Model): # Notes, Plan, Elevation - files = self.get_fnames() + files_list = self.get_fnames() + files = [] sexytopo = False - for f in files: - if not isinstance(f, Path): # ignore directories which have been turned into strings - files.remove(f) + for f in files_list: + if isinstance(f, Path): # ignore directories which have been turned into strings + files.append(f) if str(f).endswith(".data.json"): # we have sexytopo data sexytopo = True