12 lines
333 B
Python
12 lines
333 B
Python
# from server.logging import new_db_connection
|
|
|
|
# connection = new_db_connection()
|
|
|
|
|
|
def insert_video(list_id, name, url):
|
|
cursor = connection.cursor()
|
|
cursor.execute('INSERT INTO video_lists_content (list_id, name, url) VALUES (%s,%s,%s)',
|
|
(list_id, name, url))
|
|
connection.commit()
|
|
cursor.close()
|