add to function

This commit is contained in:
2024-03-09 20:28:55 -05:00
parent 66ea127f23
commit 039ecde461
7 changed files with 103 additions and 2 deletions

29
app/main.py Normal file
View File

@@ -0,0 +1,29 @@
from AnimalShelter import AnimalShelter
test = AnimalShelter()
test_criteria = {"breed": "Pit Bull Mix"}
test_data = test.read(criteria=test_criteria)
for object in test_data:
print(object)
test_data = {
'rec_num': 10001,
'age_upon_outcome': '3 years',
'animal_id': 'FA69420',
'animal_type': 'Furry',
'breed': 'Protogen',
'color': 'Purple',
'date_of_birth': '1999-12-25',
'datetime': '2019-10-11 10:03:00',
'monthyear': '2019-10-11T10:03:00',
'name': '*Brex',
'outcome_subtype': 'Foster',
'outcome_type': 'Adoption',
'sex_upon_outcome': 'Male i think',
'location_lat': 30.7118766251975,
'location_long': -97.2999365773623,
'age_upon_outcome_in_weeks': 558.059821428571
}
test.create(test_data)