case insensitive search already watched movies

This commit is contained in:
localhost_frssoft 2022-09-01 22:28:03 +03:00
parent b5738f5ff8
commit 85ede6672b

View file

@ -28,7 +28,7 @@ def mark_as_watched_movie(original_name=None, ru_name=None, year=None):
def get_already_watched(original_name=None, ru_name=None, year=None):
already_watched = c.execute(f"SELECT * FROM watched_movies WHERE original_name == (?) AND ru_name == (?) AND year == (?)",
already_watched = c.execute(f"SELECT * FROM watched_movies WHERE original_name == (?) AND ru_name == (?) AND year == (?) COLLATE NOCASE",
(original_name,ru_name,year)).fetchone()
if already_watched is not None:
return True