10 lines
327 B
Python
10 lines
327 B
Python
# cache/video_summary.py
|
|
import db
|
|
from playlists import playlist_db
|
|
|
|
def rebuild_video_summary():
|
|
with db.get_conn() as conn:
|
|
conn.execute("DELETE FROM video_summary_materialized;")
|
|
conn.execute("CREATE TABLE IF NOT EXISTS video_summary_materialized AS SELECT * FROM video_summary;")
|
|
conn.commit()
|