Skip to content

Commit

Permalink
feat: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ilayda-cp committed Sep 17, 2024
1 parent 819b966 commit 94d3082
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
16 changes: 1 addition & 15 deletions static/js/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions webapp/publisher/snaps/metrics_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 94d3082

Please sign in to comment.