Skip to content

Commit

Permalink
fix(examples): update merge buckets example script (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlin authored Sep 12, 2023
1 parent 3b4b6f0 commit 99c597b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/merge_buckets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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: ")
Expand Down Expand Up @@ -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")
Expand Down

1 comment on commit 99c597b

@t4wE
Copy link

@t4wE t4wE commented on 99c597b Sep 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey. can you explain how to run this script? thanks in advance

Please sign in to comment.