diff --git a/migrations/02_add_archive_count.py b/migrations/02_add_archive_count.py index 563237c..10d4b33 100644 --- a/migrations/02_add_archive_count.py +++ b/migrations/02_add_archive_count.py @@ -81,7 +81,7 @@ ) in_bucket = sum(1 for _ in bucket.objects.all()) - in_archive = connection.execute(sa.select([sa.func.count(Archive.c.avro_archive_id)])).fetchone() + in_archive = connection.execute(sa.select([sa.func.count(Archive.c.avro_archive_id)])).fetchone()[0] print(f"Bucket: {in_bucket} Archive: {in_archive} orphaned: {in_bucket-in_archive}")