fix(process): fix the stupid number sign

This commit is contained in:
Haoyu Xu
2022-01-24 23:12:19 -05:00
parent 93881e5476
commit d2a371a27f
2 changed files with 2 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ class Builder:
target=self.config["operator"]["target_folder"].format(name=operator_name),
common_name=self.config["operators"][operator_name]["_operator_settings.js"]["filename"],
fallback_name=self.config["operators"][operator_name]["index.html"]["fallback_name"],
id_name=self.config["operators"][operator_name]["index.html"]["id"]
id_name=self.config["operators"][operator_name]["index.html"]["id"].replace("%23", "#")
)
operator_file = pathlib.Path.cwd().joinpath(file_paths["target"], "..", "{}_assets.js".format(file_paths["id_name"]))

View File

@@ -77,7 +77,7 @@ class Initializer:
copy_map = [
dict(
source_name="operator_settings.js",
target_name="{}_settings.js".format(self.config["operators"][self.operator_name]["index.html"]["id"]),
target_name="{}_settings.js".format(self.config["operators"][self.operator_name]["index.html"]["id"].replace("%23", "#")),
source_path=operator_settings_path,
target_path=dir_map["config"],
),