Add some webrings
Difficult euroring parsing was made by GPT too. Its realisation is horror
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user