Add some webrings

Difficult euroring parsing was made by GPT too. Its realisation is
horror
This commit is contained in:
2026-04-09 04:17:57 +03:00
parent b35aaced54
commit 75525b4d57
4 changed files with 281 additions and 1 deletions
+4 -1
View File
@@ -1,6 +1,8 @@
from htmlmin import minify
from flask import Blueprint, render_template, request, jsonify
from .modules.euroring import data as euroring_data, refresh_cache as euroring_refresh
bp = Blueprint(
"root",
__name__,
@@ -9,8 +11,9 @@ bp = Blueprint(
)
def render_tmpl(filename: str) -> str:
euroring_refresh()
return minify(
render_template(filename),
render_template(filename, euroring=euroring_data),
remove_empty_space=True
)