feat(lab): separate evidence catalogs and record methods
This commit is contained in:
@@ -312,10 +312,11 @@ def build_session_router(
|
||||
def list_observation_sessions(
|
||||
limit: int = Query(default=20, ge=1, le=100),
|
||||
cursor: str | None = Query(default=None, max_length=128),
|
||||
scope: Literal["all", "source", "laboratory"] = "all",
|
||||
) -> dict[str, Any]:
|
||||
try:
|
||||
_refresh_catalog(catalog_refresher)
|
||||
page = store.list_recent(limit=limit, cursor=cursor)
|
||||
page = store.list_recent(limit=limit, cursor=cursor, scope=scope)
|
||||
return {
|
||||
"items": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user