diff --git a/README.md b/README.md index 231bbec..232e35e 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,9 @@ [![DeepSource](https://static.deepsource.io/deepsource-badge-dark-mini.svg)](https://deepsource.io/gh/navanchauhan/Curie-Web/?ref=repository-badge) +**Do Not Forget To Change DB Host configuration!** + + ``` export PATH=$PATH:/home/pi/Desktop/Curie-Web/app/src/scripts diff --git a/app/forms.py b/app/forms.py index 44dadfc..975b3ad 100644 --- a/app/forms.py +++ b/app/forms.py @@ -36,4 +36,7 @@ class statusForm(FlaskForm): class generateSMILES(FlaskForm): n = IntegerField('Number of Molecules to Generate',default=1,validators=[DataRequired()]) - #modelSelection = SelectField('Model',choices=[("alpha","Alpha"),("beta","Beta")]) \ No newline at end of file + #modelSelection = SelectField('Model',choices=[("alpha","Alpha"),("beta","Beta")]) + +class PyMedSearch(FlaskForm): + query = StringField('Search Query for PubMed',default="Covid-19",validators=[DataRequired()]) \ No newline at end of file diff --git a/app/templates/search.html b/app/templates/search.html new file mode 100644 index 0000000..1faf151 --- /dev/null +++ b/app/templates/search.html @@ -0,0 +1,50 @@ +{% extends 'base.html' %} + +{% block main %} +
Search PubMed articles.
+ + + {% if result %} +DOI: {{result[x]['doi']}}
+PubMed ID: {{result[x]['pubmed_id']}}
+Download: Sci-Hub
+Journal: {{result[x]['journal']}}
+Abstract: {{result[x]["abstract"]}}
+Published on {{result[x]['publication_date']}}
+