Skip to content

Commit

Permalink
Small update with a fix. Added dist/ to .gitignore.
Browse files Browse the repository at this point in the history
  • Loading branch information
NoobToolzz committed Sep 13, 2024
1 parent f72f30b commit 9e7223a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
icon.ico
Multi-Installer.exe

dist/
Browsers/
Social Media/
2 changes: 1 addition & 1 deletion data/main_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def table_gen() -> Table:

return table

async def check_link_statuses(self) -> None:
def check_link_statuses(self) -> None:
def check_link_status(choice: Choice, table: Table) -> None:
try:
r = requests.head(
Expand Down
3 changes: 0 additions & 3 deletions dist/config.json

This file was deleted.

8 changes: 5 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,14 @@

def exit_program() -> None:
print(Align.center("[bold red]Exiting..."))
exit()
exit(1)


def main() -> None:
commands: Dict[str, Callable[[], None]] = {
"settings": main_functions.display_settings,
"status": main_functions.check_link_statuses,
"exit": exit_program,
"quit": exit_program,
"stop": exit_program,
}

while True:
Expand Down Expand Up @@ -54,6 +52,9 @@ def main() -> None:

if user_choice.lower() in commands:
commands[user_choice.lower()]()
elif user_choice not in choices.keys():
print(Align.center(f"[bold red]Invalid choice"))
return main()
elif user_choice in choices.keys():
main_functions.download_and_run(user_choice)
main_functions.clean_up_files(user_choice, Path(__file__).resolve().parent)
Expand All @@ -62,4 +63,5 @@ def main() -> None:
if __name__ == "__main__":
os.system("cls" if os.name == "nt" else "clear")
side_functions.clean_up_cache()

main()

0 comments on commit 9e7223a

Please sign in to comment.