Skip to content

Conversation

@tnt07-t
Copy link

@tnt07-t tnt07-t commented Nov 25, 2025

Title

Added weekly_challenge table and query by date

Overview

Added table weekly_challenge.py in data base and added query get_weekly_challenge_by_date and added but commented out CreateWeeklyChallenge

Changes Made

I populated weekly_challenge table with name, message, start_date, and end_date, added serialize, and added query get_weekly_challenge_by_date

Test Coverage

Tested locally

@tnt07-t tnt07-t requested review from Aayush-Agnihotri, akmatchev and nfq2 and removed request for Aayush-Agnihotri November 25, 2025 03:58
Copy link
Contributor

@nfq2 nfq2 left a comment

Choose a reason for hiding this comment

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

i left a couple of comments for small fixes. also, since ur changing the database and adding a new table you need to add a migration (tells our database what changes it needs to make). u can prob just ask chatgpt how to do this since i'm not 100% what the commands are but try:

generate migration file: alembic revision --autogenerate -m "add <table>"
syncs ur DB and apply changes to ur db: alembic upgrade head
push the new changes it added to ur branch as well (migrations/versions)

you might also wanna do some testing by creating new challenges and seeing if you can get them using ur endpoint

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