mirror of
https://gitlab.com/KKlochko/tui-rsync.git
synced 2026-08-12 17:57:43 +00:00
Add the query to get all backup plans.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
from .get_all_backup_plans_query import GetAllBackupBackupPlansQuery
|
||||
|
||||
__all__ = ['GetAllBackupBackupPlansQuery']
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
from tui_rsync.infrastructure.orm.dto.dtos import BackupPlanDTO
|
||||
|
||||
from tui_rsync.infrastructure.orm.models import BackupPlanModel
|
||||
|
||||
|
||||
class GetAllBackupBackupPlansQuery:
|
||||
def execute(self):
|
||||
return (BackupPlanDTO.to_domain(model) for model in BackupPlanModel.select().iterator())
|
||||
Reference in New Issue
Block a user