mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-08-06 02:21:42 +00:00
Put static assets in a separate directory so they can be delivered directly by nginx
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user