From 2bc3b74c170e89ae7b2033ed54ee995d822446dc Mon Sep 17 00:00:00 2001 From: Chaz Larson Date: Mon, 25 Sep 2023 23:05:59 -0500 Subject: [PATCH] coerce to string --- modules/meta.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/meta.py b/modules/meta.py index cd4cf634..be6b32cd 100644 --- a/modules/meta.py +++ b/modules/meta.py @@ -454,10 +454,10 @@ class DataFile: if "<<" in key and ">>" in key: for k, v in variables.items(): if f"<<{k}>>" in key: - key = key.replace(f"<<{k}>>", v) + key = key.replace(f"<<{k}>>", f"{v}") for k, v in default.items(): if f"<<{k}>>" in key: - key = key.replace(f"<<{k}>>", v) + key = key.replace(f"<<{k}>>", f"{v}") if key not in variables: variables[key] = value for key, value in variables.copy().items(): @@ -470,10 +470,10 @@ class DataFile: if "<<" in key and ">>" in key: for k, v in variables.items(): if f"<<{k}>>" in key: - key = key.replace(f"<<{k}>>", v) + key = key.replace(f"<<{k}>>", f"{v}") for k, v in default.items(): if f"<<{k}>>" in key: - key = key.replace(f"<<{k}>>", v) + key = key.replace(f"<<{k}>>", f"{v}") if key not in variables and key not in default: optional.append(key)