Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion utils/progress_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def _get_path_progress(self, user_id: int) -> List[Dict]:
cursor = self.db.execute(
"""SELECT p.id, p.name,
COUNT(pt.id) as total,
COUNT(CASE WHEN pt.completed = 1 THEN 1 END) as completed
COUNT(CASE WHEN utp.completed = 1 THEN 1 END) as completed
FROM paths p
LEFT JOIN topics pt ON p.id = pt.path_id
LEFT JOIN user_topic_progress utp
Expand Down
Loading