Skip to content

Commit

Permalink
fixup! fixup! fixup! Check difference of archive and bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
jvansanten committed Feb 16, 2024
1 parent d840f75 commit 65673eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrations/02_add_archive_count.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
)

in_bucket = {summary.key: summary.size for summary in bucket.objects.all()}
print(f"{bucket.name}: {sum(in_bucket.values) / 2**30} GB in {len(in_bucket)} items")
print(f"{bucket.name}: {sum(in_bucket.values()) / 2**30} GB in {len(in_bucket)} items")
in_archive = {
get_key_for_url(bucket, row["uri"]): row["avro_archive_id"]
for row in connection.execute(sa.select([Archive.c.avro_archive_id, Archive.c.uri])).fetchall()
Expand Down

0 comments on commit 65673eb

Please sign in to comment.