fix: Do not display offline instances for solicitation

pull/61/head
db0 2023-11-26 19:15:09 +01:00
parent 8ba5705b12
commit b42b0b10fb
1 changed files with 3 additions and 0 deletions

View File

@ -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
) )