what if the last commit produced running code? who knows, but now it runs
This commit is contained in:
parent
34af60782c
commit
37507e65ab
3 changed files with 3 additions and 4 deletions
|
@ -9,11 +9,10 @@ from c3nav.api.auth import auth_responses
|
|||
from c3nav.mapdata.models.access import AccessPermission
|
||||
from c3nav.mapdata.schemas.models import CustomLocationSchema
|
||||
from c3nav.mapdata.utils.cache.stats import increment_cache_key
|
||||
from c3nav.routing.api.schemas import BSSIDSchema
|
||||
from c3nav.routing.locator import Locator
|
||||
from c3nav.routing.schemas import LocateRequestPeerSchema
|
||||
|
||||
BSSIDSchema = Annotated[str, APIField(pattern=r"^[a-z0-9]{2}(:[a-z0-9]{2}){5}$", title="BSSID")]
|
||||
|
||||
positioning_api_router = APIRouter(tags=["positioning"])
|
||||
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ class LocatorPoint:
|
|||
class Locator:
|
||||
peers: list[LocatorPeer] = field(default_factory=list)
|
||||
peer_lookup: dict[BSSID, int] = field(default_factory=dict)
|
||||
xyz: np.array = np.empty((0,))
|
||||
xyz: np.array = field(default_factory=np.empty((0,)))
|
||||
spaces: dict[int, "LocatorSpace"] = field(default_factory=dict)
|
||||
|
||||
@classmethod
|
||||
|
|
|
@ -5,7 +5,7 @@ from pydantic import Field as APIField
|
|||
from pydantic import NegativeInt, PositiveInt
|
||||
|
||||
from c3nav.api.utils import NonEmptyStr
|
||||
from c3nav.routing.api.positioning import BSSIDSchema
|
||||
from c3nav.routing.api.schemas import BSSIDSchema
|
||||
|
||||
|
||||
class LocateRequestPeerSchema(Schema):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue