Skip to content

Commit 99c597b

Browse files
authored
fix(examples): update merge buckets example script (#75)
1 parent 3b4b6f0 commit 99c597b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

examples/merge_buckets.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ def main():
1717
aw = aw_client.ActivityWatchClient(testing=True)
1818

1919
buckets = aw.get_buckets()
20-
print(f"Buckets: {buckets.keys()}")
20+
print("Available bucket IDs:")
21+
print()
22+
for id in buckets.keys():
23+
print(id)
24+
print()
2125

2226
src_id = input("Source bucket ID: ")
2327
dest_id = input("Destination bucket ID: ")
@@ -53,7 +57,7 @@ def main():
5357

5458
print("Operation complete")
5559
if input("Do you want to delete the source bucket? (y/n): ") == "y":
56-
aw.delete_bucket(src_id)
60+
aw.delete_bucket(src_id, force=True)
5761
print("Bucket deleted")
5862

5963
print("Exiting")

0 commit comments

Comments
 (0)