Skip to content

Commit

Permalink
hmm
Browse files Browse the repository at this point in the history
  • Loading branch information
KorryKatti committed Apr 1, 2024
1 parent 6a864d0 commit 9a8101e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions index.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,13 @@ def uninstall_app():
# Remove app ID from downloads.txt
downloads_file = os.path.join("appfiles", "downloads.txt")
if os.path.exists(downloads_file):
with open(downloads_file, "r") as f:
with open(downloads_file, "r+") as f:
lines = f.readlines()
with open(downloads_file, "w") as f:
f.seek(0)
for line in lines:
if not line.strip().startswith(app_id):
f.write(line)
f.truncate()
else:
print("downloads.txt not found.")

Expand All @@ -269,10 +270,7 @@ def uninstall_app():

# Call cherry() with start and uninstall commands
cherry(start_app, uninstall_app)





# CallBack function for commenu
def commenu_callback(choice):
if choice == "Community":
Expand Down

0 comments on commit 9a8101e

Please sign in to comment.