Skip to content

Commit 8eaacda

Browse files
committed
Adding a condition so end date is considered when getting active resources
1 parent dbc988c commit 8eaacda

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/load_performance.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ def fetch_endpoint_summary(db_path):
107107
resource r
108108
inner join resource_endpoint re on re.resource = r.resource
109109
inner join resource_dataset rd on rd.resource = r.resource
110+
where r.end_date = ""
110111
GROUP BY
111112
re.endpoint
112113
) t1
@@ -116,7 +117,7 @@ def fetch_endpoint_summary(db_path):
116117
inner join (
117118
SELECT
118119
endpoint,
119-
max(date(entry_date)),
120+
max(date(entry_date)),
120121
status,
121122
exception
122123
FROM

0 commit comments

Comments
 (0)