aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.example.ini5
-rwxr-xr-xpack.py2
2 files changed, 2 insertions, 5 deletions
diff --git a/config.example.ini b/config.example.ini
index 9a4872b..f1d9071 100644
--- a/config.example.ini
+++ b/config.example.ini
@@ -31,10 +31,7 @@ soffice = soffice
[templates]
directory = templates/
-email_1 = email_1.html
-email_2 = email_2.html
-pub = pub.html
-tmp = template.html
+main = template.html
[web_service]
api_base = https://ykps.runxiyu.org/sjdb/
diff --git a/pack.py b/pack.py
index b0e9a11..902e256 100755
--- a/pack.py
+++ b/pack.py
@@ -30,7 +30,7 @@ from jinja2 import Template, StrictUndefined
def main(date: str, config: ConfigParser) -> None:
with open(
- os.path.join(config["templates"]["directory"], config["templates"]["tmp"]),
+ os.path.join(config["templates"]["directory"], config["templates"]["main"]),
"r",
encoding="utf-8",
) as template_file: