Skip to content

Commit ebd828c

Browse files
author
Dmytro Trotsko
committed
Fixed delphi hosted filtering
1 parent 56cf072 commit ebd828c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/indicatorsets/views.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,11 @@ def get_context_data(self, **kwargs):
238238
default=Value(0),
239239
output_field=IntegerField(),
240240
),
241+
delphi_hosted=Case(
242+
When(source_type__in=["covidcast", "other_endpoint"], then=Value(1)),
243+
default=Value(0),
244+
output_field=IntegerField(),
245+
),
241246
).order_by("beta_last", "-is_ongoing", "-is_dua_required", "name")
242247
context["related_indicators"] = json.dumps(
243248
self.get_related_indicators(

src/templates/indicatorsets/indicatorSetsTable.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@
303303
<td>{{ indicator_set.censoring }}</td>
304304
<td>{{ indicator_set.missingness }}</td>
305305
<td>
306-
{% if indicator_set.source_type == "covidcast" or indicator_set.source_type == "other_endpoint" %}
306+
{% if indicator_set.delphi_hosted %}
307307
Yes
308308
{% else %}
309309
No

0 commit comments

Comments
 (0)