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=''):
|
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)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user