modify scripts

This commit is contained in:
oscarz
2025-04-23 18:32:33 +08:00
parent 2e2218b623
commit e73250ffd0

View File

@ -109,9 +109,9 @@ def insert_movie_index(title, href, from_actor_list=None, from_movie_makers=None
def insert_actor_movie(performer_id, movie_id, tags=''): def insert_actor_movie(performer_id, movie_id, tags=''):
try: try:
cursor.execute(""" cursor.execute("""
INSERT INTO javdb_actors_movies (actor_id, movie_id, tags) INSERT INTO javdb_actors_movies (actor_id, movie_id, tags, updated_at)
VALUES (?, ?, ?) VALUES (?, ?, ?, datetime('now', 'localtime'))
ON CONFLICT(actor_id, movie_id) DO UPDATE SET tags=excluded.tags ON CONFLICT(actor_id, movie_id) DO UPDATE SET tags=excluded.tags, updated_at=datetime('now', 'localtime')
""", """,
(performer_id, movie_id, tags) (performer_id, movie_id, tags)
) )