Skip to content

Commit d9e7329

Browse files
Copilotgablilli
andauthored
fix: handle evtId zero when grouping grade components
Agent-Logs-Url: https://github.com/gablilli/chemediaho/sessions/811b0b06-3415-408a-ac20-267be06b3b1a Co-authored-by: gablilli <167802854+gablilli@users.noreply.github.com>
1 parent 600a2d8 commit d9e7329

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ def _get_effective_grades(grades_list):
13601360
if g.get('componentDesc'):
13611361
evt_id = g.get('evtId')
13621362
key = evt_id if evt_id is not None else g.get('evtDate')
1363-
if key:
1363+
if key is not None and key != "":
13641364
if key not in component_groups:
13651365
component_groups[key] = []
13661366
component_groups[key].append(g['decimalValue'])

0 commit comments

Comments
 (0)