small name change in method to delete songs

This commit is contained in:
mrepetto 2019-10-09 19:39:11 -03:00
parent e6b5976e40
commit 9a1c71b349
3 changed files with 4 additions and 4 deletions

View file

@ -54,12 +54,12 @@ class Dejavu:
""" """
return self.db.get_songs() return self.db.get_songs()
def delete_songs_by_ids(self, song_ids: List[int]) -> None: def delete_songs_by_id(self, song_ids: List[int]) -> None:
""" """
Deletes all audios given their ids. Deletes all audios given their ids.
:param song_ids: song ids to delete from the database. :param song_ids: song ids to delete from the database.
""" """
self.db.delete_songs_by_ids(song_ids) self.db.delete_songs_by_id(song_ids)
def fingerprint_directory(self, path: str, extensions: str, nprocesses: int = None) -> None: def fingerprint_directory(self, path: str, extensions: str, nprocesses: int = None) -> None:
""" """

View file

@ -169,7 +169,7 @@ class BaseDatabase(object, metaclass=abc.ABCMeta):
pass pass
@abc.abstractmethod @abc.abstractmethod
def delete_songs_by_ids(self, song_ids: List[int], batch_size: int = 1000) -> None: def delete_songs_by_id(self, song_ids: List[int], batch_size: int = 1000) -> None:
""" """
Given a list of song ids it deletes all songs specified and their corresponding fingerprints. Given a list of song ids it deletes all songs specified and their corresponding fingerprints.
:param song_ids: song ids to be deleted from the database. :param song_ids: song ids to be deleted from the database.

View file

@ -217,7 +217,7 @@ class CommonDatabase(BaseDatabase, metaclass=abc.ABCMeta):
return results, dedup_hashes return results, dedup_hashes
def delete_songs_by_ids(self, song_ids: List[int], batch_size: int = 1000) -> None: def delete_songs_by_id(self, song_ids: List[int], batch_size: int = 1000) -> None:
""" """
Given a list of song ids it deletes all songs specified and their corresponding fingerprints. Given a list of song ids it deletes all songs specified and their corresponding fingerprints.
:param song_ids: song ids to be deleted from the database. :param song_ids: song ids to be deleted from the database.