My Flask would called an exe program. And when it runs, it would concatenate the output and return a string to html like this:
File1.dll< br >Encryption Passed< br >Validation Passed< br >File2.dll< br >Encryption Passed< br >Validation Passed< br >File3.dll< br >Encryption Passed< br >Validation Passed< br >
Then I loop it and display it in list from by splitting the < br >. My html looks like this:
<ul>
{% for out in outputLog.split("<br>")%}
<li>{{ out }} </li>
{% endfor %}
</ul>
However, I want my output to display in this way in a table form where it will check the output of the message and determine which column it should belongs to.
My table headings are:
File Name | Encryption Status | Validation Status
I want to do something like this:
if out == "Encryption Passed":
print at "Encryption Status" column
elif out == "Validation Passed":
print at "Validation Status" column
else:
print at "File Name" column
Does it possible and how to do that? Or is there any better solution to this?