Skip to content

remove student discord ID from queue history CSV - #52

Open
TwoLettuce wants to merge 1 commit into
mainfrom
fix-queue-history-header
Open

remove student discord ID from queue history CSV#52
TwoLettuce wants to merge 1 commit into
mainfrom
fix-queue-history-header

Conversation

@TwoLettuce

Copy link
Copy Markdown
Contributor

That field is ignored when retrieving the table data, so including it in the header was offsetting some of the column names.

That field is ignored when retrieving the table data, so including it in the header was offsetting some of the column names.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new header.remove("student_discord_id") can raise ValueError if the column name is absent (schema drift/rename), making CSV export fragile.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Removes the student_discord_id column from the generated queue history CSV header so the exported CSV columns align with the row data being written.

Changes:

  • Drops student_discord_id from the CSV header produced by get_queue_history_as_csv().
File summaries
File Description
src/data_access/queue_history_dao.py Removes student_discord_id from the CSV header to fix column offset/misalignment.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

"""
)
header = [row["COLUMN_NAME"] for row in await cursor.fetchall()]
header.remove("student_discord_id")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants