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

Revert to backup lets you delete tab password #350

Open
JoeyRubas opened this issue Jan 23, 2025 · 0 comments
Open

Revert to backup lets you delete tab password #350

JoeyRubas opened this issue Jan 23, 2025 · 0 comments

Comments

@JoeyRubas
Copy link

Problem encountered at UChicago Apda Tournament spring 2025. Revert to the first backup ends up deleting the tab password, locking out the tab director.

I haven't tested it, but my theory is it's a result of the backup call at the start of the handle in the initalize_tournament management command.

    def handle(self, *args, **options):
        backup_round("before_new_tournament")
        self.stdout.write("Clearing data from database")
        try:
            call_command("flush", interactive=False)
        except (IOError, os.error) as why:
            self.stdout.write("Failed to clear database")
            print(why)
            sys.exit(1)

This is the intended behavior when making a new tournament (when one already exists), but when ran on initialization I think it results in the creation of a backup that was created before the tab password was put in the database, and thus reverting to that backup locks tab out.

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

No branches or pull requests

1 participant