mirror of https://gitlab.com/KKlochko/tui-rsync
parent
a0846b93a1
commit
70f60ff715
@ -1,8 +1,12 @@
|
||||
from tui_rsync.core.ports.orm import DatabaseManagerPort
|
||||
from tui_rsync.infrastructure.orm.dto.dtos import BackupPlanDTO
|
||||
|
||||
from tui_rsync.infrastructure.orm.models import BackupPlanModel
|
||||
|
||||
|
||||
class GetAllBackupBackupPlansQuery:
|
||||
def __init__(self, database_manager: DatabaseManagerPort):
|
||||
self.databaseManager = database_manager
|
||||
|
||||
def execute(self):
|
||||
return (BackupPlanDTO.to_domain(model) for model in BackupPlanModel.select().iterator())
|
@ -1,3 +1,5 @@
|
||||
from .user_data_paths import UserDataPaths
|
||||
from .current_configuration import CurrentConfiguration
|
||||
from .configuration import Configuration
|
||||
|
||||
__all__ = ['UserDataPaths']
|
||||
__all__ = ['UserDataPaths', 'CurrentConfiguration', 'Configuration']
|
||||
|
Loading…
Reference in new issue