mirror of
https://gitlab.com/KKlochko/tui-rsync.git
synced 2026-08-12 17:57:43 +00:00
Add a getter for destinations to the Source.
This commit is contained in:
@@ -90,6 +90,14 @@ class Source(BaseModel):
|
||||
path=destination_path
|
||||
)
|
||||
|
||||
def get_destinations(self):
|
||||
destionations = []
|
||||
|
||||
for dest in self.destinations:
|
||||
destionations.append(dest.path)
|
||||
|
||||
return destionations
|
||||
|
||||
def update_label(self, new_label):
|
||||
self.label = new_label
|
||||
self.save()
|
||||
|
||||
Reference in New Issue
Block a user