Skip to content

Commit 23f764d

Browse files
author
Dmytro Trotsko
committed
Added new indicator field to the view
1 parent 872ce8a commit 23f764d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/alternative_interface/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,15 @@ def alternative_interface_view(request):
7676
).all()
7777

7878
if pathogen_filter:
79-
indicators_qs = indicators_qs.filter(pathogens__id=pathogen_filter)
79+
indicators_qs = indicators_qs.filter(pathogens__id=pathogen_filter, indicator_set__epidata_endpoint="covidcast")
8080

8181
# Convert to list of dictionaries
8282
ctx["indicators"] = [
8383
{
8484
"_endpoint": indicator.indicator_set.epidata_endpoint,
8585
"name": indicator.name,
8686
"data_source": indicator.source.name if indicator.source else "Unknown",
87+
"time_type": indicator.time_type,
8788
}
8889
for indicator in indicators_qs
8990
]

0 commit comments

Comments
 (0)