prepare conn-table and notes list building

This commit is contained in:
Stefan Allius
2025-04-22 00:51:50 +02:00
parent 60ecc54c1e
commit 577d7100ca
4 changed files with 35 additions and 59 deletions

View File

@@ -29,13 +29,16 @@ async def empty():
@web_routes.route('/data-fetch')
async def data_fetch():
return {
data = {
"update-time": format_datetime(format="medium"),
"server-cnt": f"<h3>{Infos.get_counter('ServerMode_Cnt')}</h3>",
"client-cnt": f"<h3>{Infos.get_counter('ClientMode_Cnt')}</h3>",
"proxy-cnt": f"<h3>{Infos.get_counter('ProxyMode_Cnt')}</h3>",
"emulation-cnt": f"<h3>{Infos.get_counter('EmuMode_Cnt')}</h3>",
}
data["conn-table"] = await render_template('conn_table.html.j2')
data["notes-list"] = await render_template('notes_list.html.j2')
return data
@web_routes.route('/favicon-96x96.png')