Skip to content

Commit

Permalink
Fixed Issue #73 (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerlight071 authored Feb 6, 2024
2 parents e4fd6f4 + 14b4057 commit a75e8ed
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 a75e8ed

Please sign in to comment.