requisite_processor 0.1.4__tar.gz → 0.2.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: requisite_processor
3
- Version: 0.1.4
3
+ Version: 0.2.5
4
4
  Summary: Module for working with course requisite data and checking requisite satisfaciton.
5
5
  Author: Michael Hickman
6
6
  Author-email: mhickman@unm.edu
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "requisite_processor"
3
- version = "0.1.4"
3
+ version = "0.2.5"
4
4
  description = "Module for working with course requisite data and checking requisite satisfaciton."
5
5
  authors = ["Michael Hickman <mhickman@unm.edu>"]
6
6
  readme = "README.md"
@@ -95,9 +95,10 @@ class RequisiteProcessor:
95
95
  'C+': 2.3, 'C': 2, 'C-': 2,
96
96
  'CR': 2,
97
97
  'D+': 1.7, 'D': 1, 'D-': 0.7,
98
+ 'F': 0
98
99
  }
99
100
 
100
- processed_grade = re.sub('(T|X|\\*)', '', grade)
101
+ processed_grade = re.sub('(T|X|R|\\*)', '', grade)
101
102
  return grades.get(processed_grade, 0)
102
103
 
103
104