update database

This commit is contained in:
2025-07-03 11:45:38 +08:00
parent 04f79b2666
commit 34ec70b0ea
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@@ -188,7 +188,7 @@ def get_content():
start_course_id = max_course_id - 5
# 查询courses表中的所有课程ID
cursor.execute('SELECT id, title FROM courses where id >= ?', (1,))
cursor.execute('SELECT id, title FROM courses where id >= ?', (49,))
# cursor.execute('SELECT id, title FROM courses where id >= ?', (start_course_id,))
course_ids_data = cursor.fetchall()
course_ids = [row[0] for row in course_ids_data]
@@ -215,7 +215,7 @@ def get_content():
# else:
# continue
logseq_md_file_name = os.path.join('markdown', f'{course_id}-{course_ids_dict[course_id]}.md')
logseq_md_file_name = os.path.join('content', f'{course_id}-{course_ids_dict[course_id]}.md')
if os.path.exists(json_filename):
logger.info(f"Course {course_id} JSON file already exists, using local file.")
# shutil.copy2(json_filename, copy_json_file_name)