diff options
-rw-r--r-- | config.example.ini | 5 | ||||
-rwxr-xr-x | pack.py | 2 |
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/ @@ -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: |