Fixed single blacklist item deletion issue that would remove all the blacklisted subtitles from the same provider at once.

pull/2367/head v1.4.1-beta.17
Lawrence A 11 months ago committed by GitHub
parent 345408d692
commit c45a2ac43c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -29,7 +29,7 @@ def blacklist_log_movie(radarr_id, provider, subs_id, language):
def blacklist_delete_movie(provider, subs_id):
database.execute(
delete(TableBlacklistMovie)
.where((TableBlacklistMovie.provider == provider) and (TableBlacklistMovie.subs_id == subs_id)))
.where((TableBlacklistMovie.provider == provider) & (TableBlacklistMovie.subs_id == subs_id)))
event_stream(type='movie-blacklist', action='delete')

@ -30,7 +30,7 @@ def blacklist_log(sonarr_series_id, sonarr_episode_id, provider, subs_id, langua
def blacklist_delete(provider, subs_id):
database.execute(
delete(TableBlacklist)
.where((TableBlacklist.provider == provider) and (TableBlacklist.subs_id == subs_id)))
.where((TableBlacklist.provider == provider) & (TableBlacklist.subs_id == subs_id)))
event_stream(type='episode-blacklist', action='delete')

Loading…
Cancel
Save