dormant instances are those that are not gone_forever #319

This commit is contained in:
rimu 2024-09-06 16:03:20 +12:00
parent 7d276136ed
commit d68a25d17f

View file

@ -1002,7 +1002,7 @@ def admin_instances_dormant():
instances = Instance.query.order_by(Instance.domain) instances = Instance.query.order_by(Instance.domain)
instances = instances.filter(Instance.dormant == True) instances = instances.filter(Instance.dormant == True, Instance.gone_forever == False)
if search: if search:
instances = instances.filter(Instance.domain.ilike(f"%{search}%")) instances = instances.filter(Instance.domain.ilike(f"%{search}%"))