From 99c597b69887b44dc1f4efd87efd04c611353416 Mon Sep 17 00:00:00 2001 From: Victor Lin <13424970+victorlin@users.noreply.github.com> Date: Tue, 12 Sep 2023 00:42:58 -0700 Subject: [PATCH] fix(examples): update merge buckets example script (#75) --- examples/merge_buckets.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/merge_buckets.py b/examples/merge_buckets.py index 55e665f..7fda79a 100644 --- a/examples/merge_buckets.py +++ b/examples/merge_buckets.py @@ -17,7 +17,11 @@ def main(): aw = aw_client.ActivityWatchClient(testing=True) buckets = aw.get_buckets() - print(f"Buckets: {buckets.keys()}") + print("Available bucket IDs:") + print() + for id in buckets.keys(): + print(id) + print() src_id = input("Source bucket ID: ") dest_id = input("Destination bucket ID: ") @@ -53,7 +57,7 @@ def main(): print("Operation complete") if input("Do you want to delete the source bucket? (y/n): ") == "y": - aw.delete_bucket(src_id) + aw.delete_bucket(src_id, force=True) print("Bucket deleted") print("Exiting")