Skip to content

Commit

Permalink
issue #5: modifyng is to ==
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelPelletierEvraire committed Apr 12, 2024
1 parent 338fd8d commit 0aedb4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def create_final_request(file, base_questions):
if "contain_organic_matter" in base_questions:
if "organic_matter" in categorie:
request_as_text = add_line(request_as_text, line)

if "contain_phosphate" in base_questions:
if "phosphate" in categorie:
request_as_text = add_line(request_as_text, line)
Expand Down Expand Up @@ -237,7 +237,7 @@ def result_to_json_file(answers, directory):
image_name = directory[last_index+1:]
image_name = image_name.split(".")[0].lower()
date_time = datetime.datetime.now().strftime("%Y-%m-%d_%Hh%Mm%Ss") # Get current date and time
if TYPE_OF_QUESTION is "Original_question":
if TYPE_OF_QUESTION == "Original_question":
# Define folder path based on the type of question
folder_path = f"tests/tests_result/original_question/{image_name}"
else:
Expand Down

0 comments on commit 0aedb4a

Please sign in to comment.