Explicit rename tag to Tag column

This commit is contained in:
norohind 2021-12-01 01:34:56 +03:00
parent d483040901
commit 8107895c52
Signed by: norohind
GPG Key ID: 01C3BECC26FB59E1
2 changed files with 2 additions and 3 deletions

View File

@ -56,7 +56,7 @@ limit %(limit)s;"""
select_diff_by_action_id = """select
coalesce(new_stats.name, old_stats.name) as "SquadronName",
coalesce(new_stats.tag, old_stats.tag),
coalesce(new_stats.tag, old_stats.tag) as "Tag",
coalesce(new_stats.score, 0) as "TotalExperience",
coalesce(old_stats.score, 0) as "TotalExperienceOld",
coalesce(new_stats.score, 0) - coalesce(old_stats.score, 0) as "TotalExperienceDiff",

3
web.py
View File

@ -88,8 +88,7 @@ class ActivityDiffHtml:
# table: str = json.dumps(model.get_diff_action_id(action_id))
resp.text = utils.activity_table_html_template.replace(
'{items}', json.dumps(model.get_diff_action_id(action_id))
).replace('{target_column_name}', 'tag').replace('{target_new_url}', '/jub/squads/now/by-tag/')
).replace('{target_column_name}', 'Tag').replace('{target_new_url}', '/jub/squads/now/by-tag/')
class MainPage: