From d2a371a27f44ea030cdfd4e5dd7fff54d5b0ee02 Mon Sep 17 00:00:00 2001 From: Haoyu Xu Date: Mon, 24 Jan 2022 23:12:19 -0500 Subject: [PATCH] fix(process): fix the stupid number sign --- lib/builder.py | 2 +- lib/initializer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/builder.py b/lib/builder.py index 3a844ef..add9e19 100644 --- a/lib/builder.py +++ b/lib/builder.py @@ -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"])) diff --git a/lib/initializer.py b/lib/initializer.py index 218360c..0fbf434 100644 --- a/lib/initializer.py +++ b/lib/initializer.py @@ -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"], ),