Skip to content

Removed reset on quiz answers#57

Open
mkaro91 wants to merge 1 commit into
TheCodeVerseHub:mainfrom
mkaro91:turn-off-daily-reset
Open

Removed reset on quiz answers#57
mkaro91 wants to merge 1 commit into
TheCodeVerseHub:mainfrom
mkaro91:turn-off-daily-reset

Conversation

@mkaro91
Copy link
Copy Markdown

@mkaro91 mkaro91 commented May 25, 2026

What changed?

Removed one line from the Update action in _ensure_daily_quest_row function in codebuddy_database.py.
This should remove the resetting of quiz scores if someone misses a day

Why?

Wasn't a planned or desired feature

  • Closes #

How to test

Provide copy/paste commands and expected output.

Checklist

  • I linked an issue or explained why not
  • I added/updated docs for user-facing changes
  • I added/updated tests (or explained why not)
  • I did not commit secrets (tokens, .env, keys)
  • CI should pass for this PR

Screenshots (optional)

If this changes UI/UX, include before/after.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR modifies the daily quest rollover logic in utils/codebuddy_database.py, aiming to stop quiz-related progress from being reset when a user misses a day.

Changes:

  • Removed the quiz_quest_completed reset from the daily rollover UPDATE in _ensure_daily_quest_row.
  • Added an inline comment near the rollover logic explaining the change.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 270 to 274
UPDATE daily_quests
SET quest_date = ?,
quizzes_completed = 0,
counting_numbers = 0,
quiz_quest_completed = 0,
counting_quest_completed = 0,
Comment thread utils/codebuddy_database.py
Comment thread utils/codebuddy_database.py
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.

3 participants