Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework dates for Event type #202

Draft
wants to merge 2 commits into
base: dev
Choose a base branch
from
Draft

Rework dates for Event type #202

wants to merge 2 commits into from

Conversation

pixup1
Copy link
Member

@pixup1 pixup1 commented Mar 23, 2025

Description

This PR replaces the year and month attributes of the Event model in the tournament app by a starting date and an ending date.

There has also been a daily APScheduler job added that checks if a week has passed since the event and in that case, switches the ongoing attribute to off. As this should only happen once, it can be switched back on manually if needed. I also centralized the scheduler code in a new file at the root of the insalan app.

Checklist

  • I have tested the changes locally and they work as expected.
  • I have added tests to cover my changes.
  • I have updated the documentation accordingly.
  • I have assigned the pull request to the appropriate reviewer(s).
  • I have added labels to the pull request, if necessary.

Related Issues

InsaLan/frontend-insalan.fr#183

@pixup1 pixup1 added the draft Do not merge yet label Mar 23, 2025
@pixup1 pixup1 self-assigned this Mar 23, 2025
@pixup1 pixup1 changed the title Replace year and month attributes of Event by date_start and date_end… Rework dates for Event type Mar 23, 2025
@pixup1 pixup1 removed the draft Do not merge yet label Mar 23, 2025
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.

1 participant