mirror of
https://gitlab.com/KKlochko/tui-rsync.git
synced 2026-08-12 17:57:43 +00:00
(Added) sync recover function.
Fixed label_prompt returning list.
This commit is contained in:
@@ -93,6 +93,19 @@ class Destination(BaseModel):
|
||||
def __str__(self) -> str:
|
||||
return f"{self.path}"
|
||||
|
||||
@staticmethod
|
||||
def get_all(label:str|None = None):
|
||||
"""
|
||||
Return all destiantions of the source.
|
||||
"""
|
||||
if label is None:
|
||||
return []
|
||||
|
||||
src = Source.get_source(label)
|
||||
if src is None:
|
||||
return []
|
||||
return src.destinations
|
||||
|
||||
class Group(BaseModel):
|
||||
label = CharField(unique=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user