mirror of
https://gitea.phreedom.club/localhost_frssoft/FMN_bot.git
synced 2024-11-26 04:51:28 +00:00
case insensitive search already watched movies
This commit is contained in:
parent
b5738f5ff8
commit
85ede6672b
|
@ -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):
|
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()
|
(original_name,ru_name,year)).fetchone()
|
||||||
if already_watched is not None:
|
if already_watched is not None:
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in a new issue