(Added) update labels option for groups.

This commit is contained in:
2023-03-25 17:29:58 +02:00
parent 5fd1ac1277
commit 9a40962408
4 changed files with 67 additions and 0 deletions
+3
View File
@@ -146,6 +146,9 @@ class Group(BaseModel):
"""
return (group_src.source for group_src in self.sources)
def remove_sources(self):
GroupSource.delete().where(GroupSource.group == self.label).execute()
def __str__(self) -> str:
return f"{self.label}"