From b9a4b5de86bad7c51fdbbf2ba01e85b61e3628f8 Mon Sep 17 00:00:00 2001 From: dettlaff Date: Thu, 30 Jan 2025 16:23:30 +0400 Subject: [PATCH] fix: remove migration fangen --- selfprivacy_api/migrations/migrate_users_to_kanidm.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/selfprivacy_api/migrations/migrate_users_to_kanidm.py b/selfprivacy_api/migrations/migrate_users_to_kanidm.py index 19a4ff8..b2366a7 100644 --- a/selfprivacy_api/migrations/migrate_users_to_kanidm.py +++ b/selfprivacy_api/migrations/migrate_users_to_kanidm.py @@ -1,7 +1,6 @@ from selfprivacy_api.migrations.migration import Migration from selfprivacy_api.models.user import UserDataUserOrigin -from selfprivacy_api.repositories.users import ACTIVE_USERS_PROVIDER from selfprivacy_api.repositories.users.kanidm_user_repository import ( ADMIN_GROUPS, KanidmUserRepository, @@ -24,9 +23,6 @@ class MigrateUsersToKanidm(Migration): return "Migrate users to kanidm." def is_migration_needed(self) -> bool: - if isinstance(ACTIVE_USERS_PROVIDER, JsonUserRepository): - return False - json_repo_users = JsonUserRepository.get_users(exclude_root=True) kanidm_repo_users = KanidmUserRepository.get_users(exclude_root=True)