-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e2615fe
commit f87f9c5
Showing
7 changed files
with
22 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from app.domain.tle import controllers, dtos | ||
from . import controllers, schemas, services, urls | ||
|
||
__all__ = ["dtos", "controllers"] | ||
__all__ = ("controllers", "schemas", "services", "urls") |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
from advanced_alchemy.service import SQLAlchemyAsyncRepositoryService | ||
from __future__ import annotations | ||
|
||
from app.db.models import TLE | ||
from advanced_alchemy.repository import SQLAlchemyAsyncRepository | ||
from advanced_alchemy.service import SQLAlchemyAsyncRepositoryService | ||
|
||
from .repositories import TLERepository | ||
from app.db import models as m | ||
|
||
__all__ = ("TLEService",) | ||
|
||
|
||
class TLEService(SQLAlchemyAsyncRepositoryService[TLE]): | ||
repository_type = TLERepository | ||
class TLEService(SQLAlchemyAsyncRepositoryService[m.TLE]): | ||
"""Handles basic lookup operations for an TLE.""" | ||
|
||
class Repository(SQLAlchemyAsyncRepository[m.TLE]): | ||
"""TLE Repository.""" | ||
|
||
model_type = m.TLE | ||
|
||
repository_type = Repository | ||
match_fields = ["name"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters