diff --git a/static/js/global.d.ts b/static/js/global.d.ts index ea7466defb..65fdbd8720 100644 --- a/static/js/global.d.ts +++ b/static/js/global.d.ts @@ -21,21 +21,7 @@ declare interface Window { private: boolean; trending: boolean; }; - SNAP_METRICS_DATA: { - nodata: boolean; - latest_active_devices: number; - metric_period: string; - active_devices_annotations: { - buckets: string[]; - name: string; - series: Series[]; - }; - territories_total: number; - default_track: any; - active_devices: any; - active_device_metric: any; - territories: any; - }; + SNAP_SETTINGS_DATA: { blacklist_countries: string[]; blacklist_country_keys: string; diff --git a/webapp/publisher/snaps/metrics_views.py b/webapp/publisher/snaps/metrics_views.py index c0bd47539f..29ec00021b 100644 --- a/webapp/publisher/snaps/metrics_views.py +++ b/webapp/publisher/snaps/metrics_views.py @@ -56,7 +56,6 @@ def publisher_snap_metrics(snap_name): """ A view to display the snap metrics page for specific snaps. """ - context = { # Data direct from details API "snap_name": snap_name, @@ -116,7 +115,7 @@ def get_active_devices(snap_name): status=active_metrics["status"], ) - ## get latest active devices + # get latest active devices latest_day_period = logic.extract_metrics_period("1d") latest_installed_base = logic.get_installed_based_metric("version") latest_day_query_json = metrics_helper.build_metric_query_installed_base(