fix: Do not display offline instances for solicitation
parent
8ba5705b12
commit
b42b0b10fb
|
@ -541,6 +541,9 @@ def get_all_solicitations():
|
||||||
).join(
|
).join(
|
||||||
subq,
|
subq,
|
||||||
Instance.id == subq.c.source_id
|
Instance.id == subq.c.source_id
|
||||||
|
).filter(
|
||||||
|
# We do not show offline instances for solicitation
|
||||||
|
Instance.poll_failures < enums.InstanceState.OFFLINE.value
|
||||||
).order_by(
|
).order_by(
|
||||||
subq.c.oldest_solicitation_date
|
subq.c.oldest_solicitation_date
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue