Fix ukladani fotek, pokus o odstraneni Optional

This commit is contained in:
Michal Kváček
2024-10-09 06:53:42 +02:00
parent d31f1c0c61
commit c6316262e5
30 changed files with 139 additions and 134 deletions
@@ -13,10 +13,10 @@ class CopilotQueryResolver(BaseQueryResolver):
def get_query(
self,
user_id: Optional[int] = None,
object_id: Optional[int] = None,
order_by: Optional[list] = None,
only_public: Optional[bool] = False,
user_id: int | None = None,
object_id: int | None = None,
order_by: list | None = None,
only_public: bool | None = False,
**kwargs
):
pilot_username = kwargs.pop("pilot_username", None)