fix: config modal scrollbar, scheduler-config.js, logging API endpoint, static cache-busting
This commit is contained in:
@@ -14,6 +14,7 @@ All template helpers that handle series data use `key` for identification and
|
||||
provide `folder` as display metadata only.
|
||||
"""
|
||||
import logging
|
||||
import time
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, List, Optional
|
||||
|
||||
@@ -26,6 +27,9 @@ logger = logging.getLogger(__name__)
|
||||
TEMPLATES_DIR = Path(__file__).parent.parent / "web" / "templates"
|
||||
templates = Jinja2Templates(directory=str(TEMPLATES_DIR))
|
||||
|
||||
# Version token for static asset cache-busting; changes on every server start.
|
||||
STATIC_VERSION: str = str(int(time.time()))
|
||||
|
||||
|
||||
def get_base_context(
|
||||
request: Request, title: str = "Aniworld"
|
||||
@@ -44,7 +48,8 @@ def get_base_context(
|
||||
"request": request,
|
||||
"title": title,
|
||||
"app_name": "Aniworld Download Manager",
|
||||
"version": "1.0.0"
|
||||
"version": "1.0.0",
|
||||
"static_v": STATIC_VERSION,
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user