From 709b95dfb376245b6a4b7dc38e5d692a1b578892 Mon Sep 17 00:00:00 2001 From: Adnan Maolood Date: Tue, 15 Feb 2022 07:07:39 -0500 Subject: [PATCH] gitsrht/alembic: Remove usage of update_visibility This method will be removed from the Repository class. Print a warning instead. --- .../a8ad35a0bee7_create_git_daemon_export_ok_files.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gitsrht/alembic/versions/a8ad35a0bee7_create_git_daemon_export_ok_files.py b/gitsrht/alembic/versions/a8ad35a0bee7_create_git_daemon_export_ok_files.py index 176cd0f..d4741c3 100644 --- a/gitsrht/alembic/versions/a8ad35a0bee7_create_git_daemon_export_ok_files.py +++ b/gitsrht/alembic/versions/a8ad35a0bee7_create_git_daemon_export_ok_files.py @@ -25,11 +25,7 @@ Session = sessionmaker() def upgrade(): - bind = op.get_bind() - session = Session(bind=bind) - print("Creating git-daemon-export-ok files") - for repo in tqdm(session.query(Repository).all()): - repo.update_visibility() + print("/!\ WARNING: Not creating git-daemon-export-ok files") def downgrade(): -- 2.38.4