Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -173,7 +173,7 @@ def get_pet_details(pet_id):
|
|
173 |
return None
|
174 |
|
175 |
# Function to format pet card
|
176 |
-
def display_pet_card(pet, is_favorite=
|
177 |
col1, col2 = st.columns([1, 2])
|
178 |
|
179 |
with col1:
|
@@ -502,7 +502,7 @@ def main():
|
|
502 |
else:
|
503 |
for pet in st.session_state.favorites:
|
504 |
st.markdown("---")
|
505 |
-
display_pet_card(pet, is_favorite=True)
|
506 |
|
507 |
with tab3:
|
508 |
st.markdown("### About PetMatch")
|
|
|
173 |
return None
|
174 |
|
175 |
# Function to format pet card
|
176 |
+
def display_pet_card(pet, is_favorite=False, context="search"):
|
177 |
col1, col2 = st.columns([1, 2])
|
178 |
|
179 |
with col1:
|
|
|
502 |
else:
|
503 |
for pet in st.session_state.favorites:
|
504 |
st.markdown("---")
|
505 |
+
display_pet_card(pet, is_favorite=True, context+"favorites")
|
506 |
|
507 |
with tab3:
|
508 |
st.markdown("### About PetMatch")
|