diff --git a/courses.db b/courses.db index d2c60e9..3ad606c 100755 Binary files a/courses.db and b/courses.db differ diff --git a/markdown_transcribe_hugo.py b/markdown_transcribe_hugo.py index d1edc53..04aca74 100644 --- a/markdown_transcribe_hugo.py +++ b/markdown_transcribe_hugo.py @@ -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)