Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/v4.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
dkmstr committed Jan 21, 2025
2 parents 8a148be + 0f218cb commit 6ab48c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/src/uds/REST/methods/servers_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@

from uds import models
from uds.core import consts, types, ui
from uds.core.managers.servers import ServerManager
from uds.core.util import net, permissions, ensure
from uds.core.util.model import sql_now, process_uuid
from uds.core.exceptions.rest import NotFound, RequestError
Expand Down Expand Up @@ -510,6 +509,10 @@ def delete_item(self, item: 'Model') -> None:
raise NotFound('Element do not exists') from None

def stats(self, item: 'Model') -> typing.Any:
# Avoid circular imports
from uds.core.managers.servers import ServerManager


item = ensure.is_instance(item, models.ServerGroup)

return [
Expand Down

0 comments on commit 6ab48c9

Please sign in to comment.