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

Commit e82b285

Browse files
committed
start of a crasher fix
1 parent d92dc96 commit e82b285

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

controllers/dashboard.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,12 @@ def subchapoverview():
432432

433433
pt = data.pivot_table(index=idxlist, values=values, columns='sid', aggfunc=afunc)
434434

435+
# TODO: debug tests so these can be live
436+
# if pt.empty:
437+
# logger.error("Empty Dataframe after pivot for {} ".format(auth.user.course_name))
438+
# session.flash = "Error: Not enough data"
439+
# return redirect(URL('dashboard','index'))
440+
435441
cmap = pd.read_sql_query("""select chapter_num, sub_chapter_num, chapter_label, sub_chapter_label
436442
from sub_chapters join chapters on chapters.id = sub_chapters.chapter_id
437443
where chapters.course_id = '{}'

0 commit comments

Comments
 (0)