From 867d86cf6cc73d72b4cd0039664a91b0b1ba4d98 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 11 Aug 2022 07:22:22 +0100 Subject: [PATCH] Fix online status not showing --- core/static/js/column-shifter.js | 2 ++ core/views/ui/drilldown.py | 12 ------------ core/views/ui/tables.py | 1 + 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/core/static/js/column-shifter.js b/core/static/js/column-shifter.js index 3d7ce93..12481ec 100644 --- a/core/static/js/column-shifter.js +++ b/core/static/js/column-shifter.js @@ -46,6 +46,8 @@ $(document).ready(function(){ "exemption": "off", "version_sentiment": "off", "num": "off", + "exemption": "off", + "online": "off", }, }; } else { diff --git a/core/views/ui/drilldown.py b/core/views/ui/drilldown.py index e51c19e..01df507 100644 --- a/core/views/ui/drilldown.py +++ b/core/views/ui/drilldown.py @@ -205,18 +205,6 @@ class DrilldownTableView(SingleTableView): for k, v in self.context.items(): if k not in context: context[k] = v - context["invisible"] = [ - "date", - "time", - "id", - "num", - "channel_nsfw", - "num_users", - "num_chans", - "exemption", - "version_sentiment", - "num", - ] context["show"] = show if request.method == "GET": if not request.htmx: diff --git a/core/views/ui/tables.py b/core/views/ui/tables.py index 4b61661..78fa5f8 100644 --- a/core/views/ui/tables.py +++ b/core/views/ui/tables.py @@ -60,5 +60,6 @@ class DrilldownTable(Table): exemption = Column() num_chans = Column() num_users = Column() + online = Column() template_name = "ui/drilldown/table_results.html" paginate_by = settings.DRILLDOWN_RESULTS_PER_PAGE