mirror of
https://github.com/norohind/SquadsActivityMonitor.git
synced 2026-10-22 17:12:08 +03:00
Frontend table builder performance impoves
This commit is contained in:
2 files changed
+3
-3
No files matched your search
@@ -61,7 +61,7 @@ class ActivityHtml:
|
||||
table_in_json: str = resp.text
|
||||
resp.content_type = falcon.MEDIA_HTML
|
||||
|
||||
resp.text = utils.activity_table_html_template.replace('{items}', json.dumps(table_in_json))
|
||||
resp.text = utils.activity_table_html_template.replace('{items}', table_in_json)
|
||||
# what? f-strings? .format? never heard about them
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ class ActivityDiffHtml:
|
||||
resp.content_type = falcon.MEDIA_HTML
|
||||
# table: str = json.dumps(model.get_diff_action_id(action_id))
|
||||
resp.text = utils.activity_table_html_template.replace(
|
||||
'{items}', json.dumps(json.dumps(model.get_diff_action_id(action_id)))
|
||||
'{items}', json.dumps(model.get_diff_action_id(action_id))
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user