mirror of
https://gitlab.com/KKlochko/tui-rsync.git
synced 2026-08-20 05:37: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
|
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):
|
def update_label(self, new_label):
|
||||||
self.label = new_label
|
self.label = new_label
|
||||||
self.save()
|
self.save()
|
||||||
|
|||||||
Reference in New Issue
Block a user