Put static assets in a separate directory so they can be delivered directly by nginx

This commit is contained in:
Ian Renton
2026-07-25 16:51:52 +01:00
parent 3c4c595288
commit 0cea777616
10 changed files with 18 additions and 18 deletions
+2 -2
View File
@@ -4,10 +4,10 @@ from datetime import timedelta
from PIL import Image, ImageDraw, ImageFont
from requests_cache import CachedSession
test = os.listdir("/")
test = os.listdir("./")
for item in test:
if item.endswith(".png"):
os.remove(os.path.join("/", item))
os.remove(os.path.join("./", item))
cache = CachedSession("/tmp/cache", expire_after=timedelta(days=30))
data = cache.get("https://raw.githubusercontent.com/k0swe/dxcc-json/refs/heads/main/dxcc.json").json()
File diff suppressed because one or more lines are too long