mirror of
https://gitea.phreedom.club/localhost_frssoft/FMN_bot
synced 2024-12-23 02:23:34 +02:00
case insensitive search already watched movies
This commit is contained in:
parent
b5738f5ff8
commit
85ede6672b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue