-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into move-renamed-committees-link
- Loading branch information
Showing
9 changed files
with
131 additions
and
45 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
{ | ||
"scripts": { | ||
"dokku": { | ||
"postdeploy": "curl https://api.pmg.org.za/v2/bill-tracker/update/" | ||
} | ||
}, | ||
"cron": [ | ||
{ | ||
"command": "curl api.pmg.org.za/v2/bill-tracker/update/ > /var/log/cron-bill-tracker", | ||
"schedule": "0 1 * * *" | ||
"command": "curl https://api.pmg.org.za/v2/bill-tracker/update/", | ||
"schedule": "@daily" | ||
} | ||
] | ||
} |
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 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 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 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 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 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 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,32 @@ | ||
<p> | ||
Hello, | ||
</p> | ||
|
||
<p> | ||
We found <b>{{ results|length }} recently updated item{% if results|length > 1 %}s{% endif %}</b> for your search | ||
<a href="{{ search.url(_external=True) }}">{{ search.search }}</a>{% | ||
if search.content_type %} in {{ search.friendly_content_type }}{% endif %}: | ||
</p> | ||
|
||
<ul> | ||
{% for result in results %} | ||
<li style="padding-bottom: 1em"> | ||
<h4><a href="{{ result._source.url }}">{{ result._source.title }}</a> - {{ result._source.date|pretty_date }}</h4> | ||
{% if result.highlight %} | ||
<p> | ||
{% if result.highlight.description %} | ||
{{ result.highlight.description|search_snippet(mark='b')|ellipse|safe }} | ||
{% elif result.highlight.fulltext %} | ||
{{ result.highlight.fulltext|search_snippet(mark='b')|ellipse|safe }} | ||
{% elif result.highlight.attachments %} | ||
{{ result.highlight.attachments|search_snippet(mark='b')|ellipse|safe }} | ||
{% endif %} | ||
</p> | ||
{% endif %} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
|
||
<p> | ||
Click here to <a href="{{ url_for('email_alerts', _external=True) }}">manage your email alerts</a>. | ||
</p> |
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