diff options
Diffstat (limited to '')
-rw-r--r-- | sjdbmk/serve.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sjdbmk/serve.py b/sjdbmk/serve.py index 411a5b2..492e443 100644 --- a/sjdbmk/serve.py +++ b/sjdbmk/serve.py @@ -65,7 +65,11 @@ def index() -> ResponseType: with open( os.path.join( config["general"]["build_path"], - "day-%s.json" % (datetime.datetime.now(tz=zoneinfo.ZoneInfo("Asia/Shanghai")) + datetime.timedelta(days=1)).strftime("%Y%m%d"), + "day-%s.json" + % ( + datetime.datetime.now(tz=zoneinfo.ZoneInfo("Asia/Shanghai")) + + datetime.timedelta(days=1) + ).strftime("%Y%m%d"), ), "r", encoding="utf-8", |