From 97051cca681e4e56cf503feb9b8632f65431863c Mon Sep 17 00:00:00 2001 From: Misha Tomilov Date: Thu, 16 Jan 2025 10:15:26 +0100 Subject: [PATCH] Fix migration to backfill user.pubid column part 1 --- h/migrations/versions/f32200e2e496_backfill_user_pubid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)