Skip to content

Commit 221e11d

Browse files
add endpoint end date filter (#46)
1 parent 0e3b613 commit 221e11d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

application/data_access/odp_summaries/conformance.py

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def get_column_field_summary(dataset_clause, offset):
5151
sql = f"""
5252
select * from endpoint_dataset_resource_summary
5353
where resource != ''
54+
and endpoint_end_date=''
5455
and ({dataset_clause})
5556
limit 1000 offset {offset}
5657
"""
@@ -63,6 +64,7 @@ def get_issue_summary(dataset_clause, offset):
6364
sql = f"""
6465
select * from endpoint_dataset_issue_type_summary
6566
where ({dataset_clause})
67+
and endpoint_end_date = ''
6668
limit 1000 offset {offset}
6769
"""
6870
issue_summary_df = get_datasette_query("performance", sql)

application/data_access/odp_summaries/issue.py

+1
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ def get_issue_summary_by_issue_type(dataset_clause, offset):
282282
FROM
283283
endpoint_dataset_issue_type_summary
284284
{dataset_clause}
285+
and endpoint_end_date = ''
285286
limit 1000 offset {offset}
286287
"""
287288
print(sql)

0 commit comments

Comments
 (0)