cleaned up search

This commit is contained in:
Hellow2
2023-05-23 16:21:12 +02:00
parent ab7f414125
commit 67b4a3bc65
3 changed files with 72 additions and 64 deletions

View File

@@ -9,7 +9,11 @@ class Query:
music_object: DatabaseObject = None
) -> None:
self.raw_query: str = raw_query
self.music_object: Optional[DatabaseObject] = None
self.music_object: Optional[DatabaseObject] = music_object
@property
def is_raw(self) -> bool:
return self.music_object is None
@property
def default_search(self) -> List[str]: