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