-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minghui dev #55
Closed
Closed
Minghui dev #55
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
12d44bc
test pull
MingghuiA 2b5753d
Minghui development (#50)
MingghuiA f3f5ae8
update start_dev.py and email alert model to combine the three databa…
MingghuiA c9b5922
remove unused file
MingghuiA 3c2052d
add codes to manage all database names on sysvars.py
MingghuiA File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<!-- email_template.html --> | ||
<html> | ||
<head> | ||
<style> | ||
body { background-color: white; font-family: Arial, sans-serif; } | ||
/* Add more styling as needed */ | ||
</style> | ||
</head> | ||
<!-- <body style="text-align: center;"> | ||
<h1 style="font-size:50px; color:purple;">Rare Disease Alert System</h1> | ||
<h2>{{ data['name'] }}</h2> | ||
<h3>You have {{ data['total'] }} new entries for your subscribed rare diseases in the database</h3> | ||
<table border="1" style="margin: auto;"> | ||
<tr> | ||
<th>Name</th> | ||
<th>GARD ID</th> | ||
<th>New Articles Number</th> | ||
<th>New Clinical Trials Number</th> | ||
<th>New Funding Project Number</th> | ||
</tr> | ||
{% for gard_id, gard_name in data['subscriptions'].items() %} | ||
{% set articles = data[gard_id].get('articles', 0) %} | ||
{% set trials = data[gard_id].get('trials', 0) %} | ||
{% set grants = data[gard_id].get('grants', 0) %} | ||
{% if articles > 0 or trials > 0 or grants > 0 %} | ||
<tr> | ||
<td><a href="https://rdas.ncats.nih.gov/disease?id={{ gard_id }}"> {{ gard_name }} </a></td> | ||
<td>{{ gard_id }}</td> | ||
<td>{{ articles }}</td> | ||
<td>{{ trials }}</td> | ||
<td>{{ grants }}</td> | ||
</tr> | ||
{% endif %} | ||
{% endfor %} | ||
</table> | ||
<h4>Results gathered within the time period of {{ data['update_date_start'] }} - {{ data['update_date_end'] }}</h4> | ||
<img src="https://upload.wikimedia.org/wikipedia/commons/6/6e/National_Center_for_Advancing_Translational_Sciences_logo.png" alt="Rare Disease Alert System" width="300"> | ||
</body> | ||
</html> --> | ||
|
||
<body style="text-align: center;"> | ||
<h1 style="font-size:50px; color:purple;">Rare Disease Alert System</h1> | ||
<!-- <h2>{{ data['name'] }}</h2> --> | ||
<h3>You have {{ data['total'] }} new entries for your subscribed rare diseases in the database</h3> | ||
<table border="1" style="margin: auto;"> | ||
<tr> | ||
<th>Disease Name</th> | ||
<th>GARD ID</th> | ||
{% for dataset in data['datasets'] %} | ||
{% if dataset == 'articles' %} | ||
<th>New Articles</th> | ||
{% elif dataset == 'trials' %} | ||
<th>New Clinical Trials</th> | ||
{% elif dataset == 'grants' %} | ||
<th>New Fundings</th> | ||
{% endif %} | ||
{% endfor %} | ||
</tr> | ||
{% for gard_id, gard_name in data['subscriptions'].items() %} | ||
{% set articles = data[gard_id].get('articles', 0) %} | ||
{% set trials = data[gard_id].get('trials', 0) %} | ||
{% set grants = data[gard_id].get('grants', 0) %} | ||
{% if articles > 0 or trials > 0 or grants > 0 %} | ||
<tr> | ||
<td><a href="https://rdas.ncats.nih.gov/disease?id={{ gard_id }}"> {{ gard_name }} </a></td> | ||
<td>{{ gard_id }}</td> | ||
{% for dataset in data['datasets'] %} | ||
{% if dataset == 'articles' %} | ||
<td>{{ articles }}</td> | ||
{% elif dataset == 'trials' %} | ||
<td>{{ trials }}</td> | ||
{% elif dataset == 'grants' %} | ||
<td>{{ grants }}</td> | ||
{% endif %} | ||
{% endfor %} | ||
</tr> | ||
{% endif %} | ||
{% endfor %} | ||
</table> | ||
<h4>Results gathered within the time period of {{ data['update_date_start'] }} - {{ data['update_date_end'] }}</h4> | ||
|
||
<img src="https://upload.wikimedia.org/wikipedia/commons/6/6e/National_Center_for_Advancing_Translational_Sciences_logo.png" alt="Rare Disease Alert System" width="300"> | ||
</body> | ||
</html> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
confused on what these lines are with the ; symbol
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the ; symbol means these lines are commented out