Skip to content

Commit 4c97a6a

Browse files
authored
add new utility
1 parent d2828d2 commit 4c97a6a

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

src/wrapper.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
while True:
1010
# get api wrapping utility
11-
utility = input("Utility [user-projects-wrapper, exit]: ")
11+
utility = input("Utility [user-projects-wrapper, follower-wrapping-utility, exit]: ")
1212

1313
if utility == "user-projects-wrapper":
1414
# url
@@ -44,7 +44,8 @@
4444
print(f"Remixes: {remixes}")
4545
print("=" * 50)
4646
print("\n")
47-
if utility == "follower-wrapping-utility":
47+
48+
elif utility == "follower-wrapping-utility":
4849
# url
4950
url = f"https://api.scratch.mit.edu/users/{username}/followers/"
5051
# get data
@@ -65,7 +66,9 @@
6566
# If you want to fetch and display more follower details, add additional fields here
6667
print("=" * 50)
6768
print("\n")
68-
if utility == "exit":
69-
os.exit()
70-
else:
71-
print("thats not an option right now!")
69+
70+
elif utility == "exit":
71+
os.exit()
72+
73+
else:
74+
print("thats not an option right now!")

0 commit comments

Comments
 (0)