coerce to string

pull/1619/head
Chaz Larson 1 year ago committed by GitHub
parent b52c9fea86
commit 2bc3b74c17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)

Loading…
Cancel
Save