(Added) update label option for source.

This commit is contained in:
2023-03-24 21:42:00 +02:00
parent cf88cdbc9f
commit cb5b4fae29
3 changed files with 35 additions and 0 deletions
+4
View File
@@ -82,6 +82,10 @@ class Source(BaseModel):
src.save()
return src
def update_label(self, new_label):
self.label = new_label
self.save()
def update_args(self, args):
args_obj = SyncCommand.get_sync_command(args)
self.args = args_obj