Update abstract.py

This commit is contained in:
Hellow2 2023-05-03 14:43:08 +02:00
parent bd3e042ae2
commit c4e1095dfc

View File

@ -1,7 +1,7 @@
import logging import logging
import random import random
from copy import copy from copy import copy
from typing import Optional, Union, Type, Dict, Set from typing import Optional, Union, Type, Dict, Set, List
import requests import requests
from bs4 import BeautifulSoup from bs4 import BeautifulSoup
@ -154,6 +154,10 @@ class Page:
album_str = property(fget=lambda self: self.get_str(self.album)) album_str = property(fget=lambda self: self.get_str(self.album))
song_str = property(fget=lambda self: self.get_str(self.song)) song_str = property(fget=lambda self: self.get_str(self.song))
@classmethod
def search_by_object(cls, data_object: DatabaseObject, filter_none: bool = True) -> List[DatabaseObject]:
return []
@classmethod @classmethod
def search_by_query(cls, query: str) -> Options: def search_by_query(cls, query: str) -> Options:
""" """