Skip to content

Commit

Permalink
Merge pull request #41 from digital-land/inconsistency_fix
Browse files Browse the repository at this point in the history
correcting the dataset and active-endpoint_count
  • Loading branch information
ssadhu-sl authored Oct 29, 2024
2 parents 87d616d + 8e21ef5 commit 60b41aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion bin/load_performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ def create_performance_tables(merged_data, cf_merged_data, endpoint_summary_data
active_endpoint_count=pd.NamedAgg(
column='endpoint',
aggfunc=lambda x: x[(merged_data.loc[x.index,
'endpoint_end_date'].notna())].nunique()
'endpoint_end_date'].isna() |
(merged_data['endpoint_end_date'] == ""))].nunique()
),
error_endpoint_count=pd.NamedAgg(
column='endpoint',
Expand Down
4 changes: 2 additions & 2 deletions bin/load_reporting_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def fetch_historic_endpoints_data_from_dl(db_path):
s.organisation,
o.name,
o.name as organisation_name,
o.dataset,
sp.pipeline as dataset,
s.collection,
sp.pipeline,
l.endpoint,
Expand Down Expand Up @@ -66,7 +66,7 @@ def fetch_latest_endpoints_data_from_dl(db_path):
s.organisation,
o.name,
o.name as organisation_name,
o.dataset,
sp.pipeline as dataset,
s.collection,
sp.pipeline,
l.endpoint,
Expand Down

0 comments on commit 60b41aa

Please sign in to comment.