mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 00:27:41 +01:00
fix bot review
This commit is contained in:
@@ -213,7 +213,9 @@ def get_virtual_collections(
|
||||
list[VirtualCollectionSchema]: List of virtual collections
|
||||
"""
|
||||
|
||||
virtual_collections = db_collection_handler.get_virtual_collections(type, limit)
|
||||
virtual_collections = db_collection_handler.get_virtual_collections(
|
||||
type=type, limit=limit
|
||||
)
|
||||
|
||||
return [VirtualCollectionSchema.model_validate(vc) for vc in virtual_collections]
|
||||
|
||||
@@ -228,11 +230,11 @@ def get_virtual_collection_identifiers(
|
||||
request (Request): Fastapi Request object
|
||||
|
||||
Returns:
|
||||
list[int]: List of virtual collection IDs
|
||||
list[str]: List of generated virtual collection IDs
|
||||
"""
|
||||
|
||||
virtual_collections = db_collection_handler.get_virtual_collections(
|
||||
request.user.id,
|
||||
type="all",
|
||||
only_fields=[VirtualCollection.name, VirtualCollection.type],
|
||||
)
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from typing import Annotated
|
||||
|
||||
from fastapi import Body, File, HTTPException, Query, Request, UploadFile, status
|
||||
from fastapi import Body, File, HTTPException, Request, UploadFile, status
|
||||
from fastapi.responses import FileResponse
|
||||
|
||||
from config import DISABLE_DOWNLOAD_ENDPOINT_AUTH
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from datetime import datetime, timezone
|
||||
from typing import Annotated
|
||||
|
||||
from fastapi import Body, HTTPException, Query, Request, UploadFile, status
|
||||
from fastapi import Body, HTTPException, Request, UploadFile, status
|
||||
|
||||
from decorators.auth import protected_route
|
||||
from endpoints.responses.assets import SaveSchema
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from datetime import datetime, timezone
|
||||
from typing import Annotated
|
||||
|
||||
from fastapi import Body, HTTPException, Query, Request, UploadFile, status
|
||||
from fastapi import Body, HTTPException, Request, UploadFile, status
|
||||
|
||||
from decorators.auth import protected_route
|
||||
from endpoints.responses.assets import StateSchema
|
||||
|
||||
@@ -3,7 +3,7 @@ from typing import Annotated, Any, cast
|
||||
|
||||
from fastapi import Body, Form, HTTPException
|
||||
from fastapi import Path as PathVar
|
||||
from fastapi import Query, Request, status
|
||||
from fastapi import Request, status
|
||||
|
||||
from decorators.auth import protected_route
|
||||
from endpoints.forms.identity import UserForm
|
||||
|
||||
Reference in New Issue
Block a user