Skip to content

Commit

Permalink
Fixed Issue #73
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerlight071 committed Feb 6, 2024
1 parent ba10342 commit 14b4057
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions view_animals.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,13 @@ def delete_animal(animal_name):
print(Fore.GREEN + f"\nSuccessfully deleted {animal_name} from the database." + Style.RESET_ALL)
time.sleep(2)
clear_screen()
print_animal_table(load_animal_data(animals_collection))
return True
else:
print(f"Failed to delete {animal_name} from the database.")
time.sleep(2)
clear_screen()
print_animal_table(load_animal_data(animals_collection))
return False

else: # Multiple animals with the same name
Expand Down

0 comments on commit 14b4057

Please sign in to comment.