Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion app/operation/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,13 @@ async def modify_host(
host = BaseHost.model_validate(db_host)
asyncio.create_task(notification.modify_host(host, admin.username))

await host_manager.add_host(db, db_host)
db_hosts = await get_hosts(db=db)
dependents = [
h
for h in db_hosts
if ((h.transport_settings or {}).get("xhttp_settings") or {}).get("download_settings") == host_id
]
await host_manager.add_hosts(db, [db_host, *dependents])

return host

Expand Down