Skip to content
Snippets Groups Projects

Resolve "re-match"

Merged Herman Andersen Dyrkorn requested to merge 46-re-match into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -218,7 +218,7 @@ def handle_remaining_images(salamander, salamander_path: str, image_id: int, las
os.rmdir(salamander_path)
db.session.delete(salamander)
db.session.commit()
if match_bool:
if match_bool and result > -1:
return jsonify({"id": result, "matching": "Match!", "message": "Matched with salamander", 'status': 200})
else:
return jsonify(
@@ -236,7 +236,7 @@ def handle_remaining_images(salamander, salamander_path: str, image_id: int, las
db.session.commit()
os.rename(processed_path, os.path.join(salamander_path, str(image_id) + "_str" + processed_extension))
os.rename(original_path, os.path.join(salamander_path, str(image_id) + original_extension))
if match_bool:
if match_bool and result > -1:
return jsonify({"id": result, "matching": "Match!", "message": "Matched with salamander", 'status': 200})
else:
return jsonify(
Loading