feat(pets): adds register view and validations wip

This commit is contained in:
2024-12-08 23:07:45 -03:00
parent ff9d94bb72
commit a41a929ca5
8 changed files with 309 additions and 13 deletions

View File

@@ -15,3 +15,11 @@ def only_guests(html: str):
if not session["id"]:
return html
return None
def pet_sex_id_to_str(sex: str):
if sex == '1':
return 'F'
elif sex == '2':
return 'M'
else:
return None