diff options
author | Zeno | 2017-07-27 00:40:46 +0800 |
---|---|---|
committer | Zeno | 2017-07-27 00:40:46 +0800 |
commit | 318145382349eb3974968569d3a25e9e5139a756 (patch) | |
tree | 87dbaaf8c1417680e82a59ff3fa5600d79aaa113 /cscore | |
parent | 8e5bd1accf77adc4c51d6efb23c5007ed7f57c62 (diff) | |
download | aur-318145382349eb3974968569d3a25e9e5139a756.tar.gz |
fix the bug which can terminate the app when class-type is null
Diffstat (limited to 'cscore')
-rwxr-xr-x | cscore | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -110,7 +110,7 @@ class Score: cur_total_grade = 0.0 for course in cur_tmp: cur_credit += float(course[0]) - if course[1] != "": + if course[1].strip() != "": cur_total_grade += float(course[0]) * float(course[1]) if(cur_credit == 0): return |