Skip to content
Snippets Groups Projects
Commit 3b40eb34 authored by Herman Andersen Dyrkorn's avatar Herman Andersen Dyrkorn
Browse files

fixing weight and length of salamander

parent 271cfe1a
No related branches found
No related tags found
1 merge request!38Resolve "remove dead code and cleanup"
......@@ -39,8 +39,9 @@ class MatchSalamander(Resource):
path_to_images = os.path.join(img_path, data['location'].lower(), data['species'], data['sex'])
weight = None
length = None
if "weight" in data and "length" in data:
if "weight" in data:
weight = sanitize_number_str(str(data['weight']))
if "length" in data:
length = sanitize_number_str(str(data['length']))
if data['sex'] != "juvenile":
result = match_file_structure(path_to_processed_image, path_to_images)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment