From b6f43292eb6c7a11fdd3b9f6e109524d49fb2a16 Mon Sep 17 00:00:00 2001
From: norohind <60548839+norohind@users.noreply.github.com>
Date: Sun, 19 Dec 2021 00:37:21 +0300
Subject: [PATCH] add /leaderboard-state/by-action-id/{action_id} in frontend
---
templates/table_diff_template.html | 18 ++++++++++++++++++
web.py | 6 +++---
2 files changed, 21 insertions(+), 3 deletions(-)
create mode 100644 templates/table_diff_template.html
diff --git a/templates/table_diff_template.html b/templates/table_diff_template.html
new file mode 100644
index 0000000..bc03c75
--- /dev/null
+++ b/templates/table_diff_template.html
@@ -0,0 +1,18 @@
+
+
+
+
+ {{ @json2html_template.html }}
+
+
+
+
+
+ {{ @footer.html }}
+
+
+
\ No newline at end of file
diff --git a/web.py b/web.py
index 0f29835..87c4e2c 100644
--- a/web.py
+++ b/web.py
@@ -3,7 +3,6 @@ import json
import falcon
import os
from EDMCLogging import get_main_logger
-import utils
from model.sqlite_cache import cache
from templates_engine import render
@@ -87,10 +86,11 @@ class ActivityDiffHtml:
def on_get(self, req: falcon.request.Request, resp: falcon.response.Response, action_id: int) -> None:
resp.content_type = falcon.MEDIA_HTML
resp.text = render(
- 'table_template.html',
+ 'table_diff_template.html',
{
'target_column_name': 'Tag',
- 'target_new_url': '/squads/now/by-tag/short/'
+ 'target_new_url': '/squads/now/by-tag/short/',
+ 'action_id': action_id
}
)