update content
This commit is contained in:
BIN
courses.db
BIN
courses.db
Binary file not shown.
@@ -188,8 +188,8 @@ def get_content():
|
||||
start_course_id = max_course_id - 5
|
||||
|
||||
# 查询courses表中的所有课程ID
|
||||
cursor.execute('SELECT id, title FROM courses where id >= ?', (49,))
|
||||
# cursor.execute('SELECT id, title FROM courses where id >= ?', (start_course_id,))
|
||||
# cursor.execute('SELECT id, title FROM courses where id >= ?', (1,))
|
||||
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]
|
||||
course_ids_dict = dict(course_ids_data)
|
||||
|
||||
Reference in New Issue
Block a user