Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
env
.env
/env
./env
.venv/
.pytest_cache/
.codegraph/
Expand Down
2 changes: 1 addition & 1 deletion api/v1/routers/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async def get_groups(
skip: int = 0,
group_service: GroupService = Depends(get_group_service),
) -> List[schemas.ReadBasicDataGroup]:
return await group_service.get_groups_with_cache(limit, skip)
return await group_service.get_groups(limit, skip)


@router.post(
Expand Down
1 change: 0 additions & 1 deletion backup.sql

This file was deleted.

19 changes: 0 additions & 19 deletions core/utils.py

This file was deleted.

14 changes: 0 additions & 14 deletions models/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,25 +276,11 @@ class Token(BaseModel):
refresh_token: str


class Access_Token(BaseModel):
access_token: str = Field(examples=[])
token_type: str = Field(examples=["bearer"])


class RefreshTokenRequest(BaseModel):
refresh: str


# Mensaje y WebSocket


class Message(BaseModel):
content: str = Field(max_length=150, examples=["Hola a todos!"])
user_id: int = Field(examples=[1])
project_id: int = Field(examples=[1])
timestamp: dt = Field(examples=["2025-10-15 09:12:12"])


class ChatMessage(BaseModel):
chat_id: int
project_id: int
Expand Down
2 changes: 1 addition & 1 deletion services/group_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def get_user_data_for_group(self, user_id: int, group_id: int):
except Exception:
raise

async def get_groups_with_cache(self, limit: int, skip: int) -> List[ReadGroup]:
async def get_groups(self, limit: int, skip: int) -> List[ReadGroup]:
try:
# Get from repository
return self.group_repo.get_all_groups(limit, skip)
Expand Down
2 changes: 1 addition & 1 deletion test/test_services/test_group_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async def test_get_groups_error(mocker):
)

with pytest.raises(DatabaseError):
await service.get_groups_with_cache(10, 10)
await service.get_groups(10, 10)


@pytest.mark.asyncio
Expand Down
117 changes: 0 additions & 117 deletions test/test_utils.py

This file was deleted.

Loading