attribute
This commit is contained in:
parent
25ddfc4997
commit
292bdfd2fa
@ -9,8 +9,8 @@ from .formatted_text import FormattedText
|
||||
|
||||
|
||||
class Lyrics(DatabaseObject):
|
||||
COLLECTION_ATTRIBUTES = ["source_collection"]
|
||||
SIMPLE_ATTRIBUTES = ["text", "language"]
|
||||
COLLECTION_ATTRIBUTES = ("source_collection",)
|
||||
SIMPLE_ATTRIBUTES = ("text", "language")
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
@ -55,8 +55,8 @@ class Source(DatabaseObject):
|
||||
Source(src="youtube", url="https://youtu.be/dfnsdajlhkjhsd")
|
||||
```
|
||||
"""
|
||||
COLLECTION_ATTRIBUTES = []
|
||||
SIMPLE_ATTRIBUTES = ["type_enum", "page_enum", "url"]
|
||||
COLLECTION_ATTRIBUTES = tuple()
|
||||
SIMPLE_ATTRIBUTES = ("type_enum", "page_enum", "url")
|
||||
|
||||
def __init__(self, page_enum: SourcePages, url: str, id_: str = None, type_enum=None) -> None:
|
||||
DatabaseObject.__init__(self, id_=id_)
|
||||
|
@ -15,6 +15,7 @@ class Target(DatabaseObject):
|
||||
"""
|
||||
|
||||
SIMPLE_ATTRIBUTES = ("_file", "_path")
|
||||
COLLECTION_ATTRIBUTES = tuple()
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
Loading…
Reference in New Issue
Block a user