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

Remove SessionEntry's from drivers who did not take part in a session #2

Closed
2 tasks
jolpica opened this issue Jan 27, 2024 · 1 comment
Closed
2 tasks
Labels
bug Something isn't working data Related to the data returned

Comments

@jolpica
Copy link
Owner

jolpica commented Jan 27, 2024

  • Drivers who have status "Did not qualify" shouldn't have a sessionentry in the race
  • Drivers who did not pre-qualify shouldn't have a sessionentry in race or qualifying
@jolpica jolpica added this to the Ergast Data Import milestone Jan 27, 2024
@jolpica jolpica added the bug Something isn't working label Jan 27, 2024
@jolpica jolpica added the data Related to the data returned label Mar 14, 2024
@chrisfree chrisfree moved this to Todo in jolpica-f1 Apr 26, 2024
@jolpica
Copy link
Owner Author

jolpica commented Mar 13, 2025

Done

SessionEntry.objects.filter(session__type__in=(SessionType.RACE,), status=SessionStatus.DID_NOT_QUALIFY).delete()
SessionEntry.objects.filter((Q(session__type__startswith="Q") | Q(session__type=SessionType.RACE)), status__in=(SessionStatus.DID_NOT_PREQUALIFY,)).delete()

@jolpica jolpica closed this as completed Mar 13, 2025
@github-project-automation github-project-automation bot moved this from Todo to Done in jolpica-f1 Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working data Related to the data returned
Projects
Status: Done
Development

No branches or pull requests

1 participant