modify scripts
This commit is contained in:
@ -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=''):
|
||||
try:
|
||||
cursor.execute("""
|
||||
INSERT INTO javdb_actors_movies (actor_id, movie_id, tags)
|
||||
VALUES (?, ?, ?)
|
||||
ON CONFLICT(actor_id, movie_id) DO UPDATE SET tags=excluded.tags
|
||||
INSERT INTO javdb_actors_movies (actor_id, movie_id, tags, updated_at)
|
||||
VALUES (?, ?, ?, datetime('now', 'localtime'))
|
||||
ON CONFLICT(actor_id, movie_id) DO UPDATE SET tags=excluded.tags, updated_at=datetime('now', 'localtime')
|
||||
""",
|
||||
(performer_id, movie_id, tags)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user