diff --git a/h/migrations/versions/f32200e2e496_backfill_user_pubid.py b/h/migrations/versions/f32200e2e496_backfill_user_pubid.py index 76aeb7922d2..b9433a7bc2c 100644 --- a/h/migrations/versions/f32200e2e496_backfill_user_pubid.py +++ b/h/migrations/versions/f32200e2e496_backfill_user_pubid.py @@ -50,7 +50,7 @@ def backfill_users( count = 0 while users := user_query.all(): - if count >= USER_MAX_COUNT: + if count >= user_max_count: logger.info("Reached maximum user count of %d", user_max_count) break batch_count = len(users)