From: Jakob Cornell Date: Mon, 13 Jan 2020 04:13:29 +0000 (-0600) Subject: Bug fix X-Git-Url: https://jcornell.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=7f40e70c1a12775bd5da9cba70553ba7269bf728;p=tutoring-tool.git Bug fix --- diff --git a/main.py b/main.py index 14e9c26..a8cf3cf 100644 --- a/main.py +++ b/main.py @@ -335,7 +335,8 @@ class MainView(View): head.insert(5, "Score (Comp)") def with_composite(record): new = list(record) - new.insert(5, round(record.overall_score(), 1)) + overall = record.overall_score() + new.insert(5, None if overall is None else round(overall, 1)) return new rows = map(with_composite, self.controller.data[name]) rows = [