Blank credits pass validation but cause valid grade records to disappear
メンテナーはふだん 2 日以内に返信
@vivek-3728 がすでに取り組んでいます。
2026年10月20日 から。
評価
この issue はまだ評価されていません。
説明
I noticed that the grade tracker accepts blank credits during validation but silently skips the same records when loading them for other commands.
For example, I created a CSV containing:
student_id,subject,score,max_score,date,credits,semester
S1,Mathematics,95,100,2026-10-06,,1
Then I ran:
python -m grade_tracker validate
python -m grade_tracker list
python -m grade_tracker summary S1
The results were inconsistent:
validatereported that the CSV was valid.listshowed no grades.summary S1reported no records for the student.- JSON output commands failed while converting the blank credits value.
I expected all commands to treat blank credits as the documented default of 3.0, so the Mathematics assessment would appear normally in listings, summaries, GPA calculations, and exports.
Looking through the code, the validator explicitly replaces blank credits with "3.0". However, the normal loader uses:
float(row.get("credits", 3.0))
Since the credits field exists but contains an empty string, dict.get() returns "" instead of the default. This causes float("") to fail, and the loader silently skips the record.
This means a CSV can pass validation while valid assessments disappear from calculations and reports without any warning.
I expected validation and all data-loading commands to apply the same default-credit rules consistently, rather than interpreting the same CSV differently.
- 主要言語
- Python
- スター
- 0
- フォーク
- 5
- 平均マージ
- 1日 15時間
- マージ済み PR(30日)
- 27
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
techcsispit/grade-tracker のほかの issue
-
add accepts Infinity scores and writes records that immediately fail validation対応中かも @vivek-3728 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
techcsispit/grade-tracker#69 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
feat: add cross-file integrity verification and repair対応中かも @deepmhatre13 が今日担当しました。 オープンfeature
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
techcsispit/grade-tracker#66 ·
メンテナーはふだん 2 日以内に返信
techcsispit/grade-tracker の issue をすべて見る
似ている issue
-
Support .aac audio uploads対応中かも @julien731 が今日担当しました。 オープンfeature
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
nimblehq/audio-transcriber#153 ·
-
help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
antonyrag/ragleap-core#1062 ·
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
gke-labs/kube-agents#4321 ·
メンテナーはふだん 1 日以内に返信
-
enhancement help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Git-Hospital/githealthcheck#61 ·
メンテナーはふだん 1 日以内に返信
-
changelog investigate
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
ramnes/notion-sdk-py#433 ·