Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit c366912

Browse files
committed
Show correct activity count after page reload
1 parent 0f62f5a commit c366912

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

controllers/admin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def assignments():
189189
assignments=assigndict,
190190
tags=tags,
191191
chapters=chapter_labels,
192-
toc=_get_toc_and_questions(),
192+
toc=_get_toc_and_questions(), # <-- This Gets the readings and questions
193193
course=course,
194194
)
195195

@@ -1398,6 +1398,7 @@ def get_assignment():
13981398
# get the count of 'things to do' in this chap/subchap
13991399
activity_count = db((db.questions.chapter==row.questions.chapter) &
14001400
(db.questions.subchapter==row.questions.subchapter) &
1401+
(db.questions.from_source == 'T') &
14011402
(db.questions.base_course == base_course)).count()
14021403

14031404
pages_data.append(dict(

0 commit comments

Comments
 (0)