update
This commit is contained in:
23
app/main.py
23
app/main.py
@@ -1,29 +1,10 @@
|
||||
from AnimalShelter import AnimalShelter
|
||||
test = AnimalShelter()
|
||||
|
||||
test_criteria = {"breed": "Pit Bull Mix"}
|
||||
test_criteria = {"breed": "Protogen"}
|
||||
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)
|
||||
test.delete(criteria={"breed": "Protogen"}, once=True)
|
Reference in New Issue
Block a user