From a76126e01e3e8d6ed47a823636a809dad1e58283 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Wed, 16 Sep 2020 20:00:35 +0530 Subject: added pubchem search --- app/templates/error.html | 2 +- app/templates/home.html | 1 + app/templates/search-pubchem.html | 48 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 app/templates/search-pubchem.html (limited to 'app/templates') diff --git a/app/templates/error.html b/app/templates/error.html index b605430..54656ba 100644 --- a/app/templates/error.html +++ b/app/templates/error.html @@ -3,7 +3,7 @@ {% block main %}

Oh Snap! An error occured

-

Error Code: {{code}}

+

Error Description: {{description}}

+
+
+ +
+ + + {% if result %} +

Search Results

+ {% for x in range(result|length) %} + + +
+
+
+
+ +
+
+
+
+
CID: {{result[x]["CID"]}}
+

Canonical SMILES: {{result[x]["CanonicalSMILES"]}}

+

Isomeric SMILES: {{result[x]["IsomericSMILES"]}}

+

2D Fingerprint {{result[x]["Fingerprint2D"]}}

+
+
+
+
+ {% endfor %} + {% endif %} + +{% endblock %} \ No newline at end of file -- cgit v1.2.3