-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #531 from tomx4096/dump_dept_csv_489
Dump departmental data as CSV files
- Loading branch information
Showing
5 changed files
with
200 additions
and
7 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
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,22 @@ | ||
{% extends "base.html" %} | ||
{% import "bootstrap/wtf.html" as wtf %} | ||
{% block content %} | ||
|
||
<div class="container theme-showcase" role="main"> | ||
|
||
<!--div class="text-center frontpage-leads"--> | ||
{% for dept in departments %} | ||
<p> | ||
{{ dept.name }} | ||
<a href={{ url_for('main.download_dept_csv',department_id=dept.id) }}>officers.csv</a> | ||
|
||
{% if dept.incidents %} | ||
<a href={{ url_for('main.download_incidents_csv',department_id=dept.id) }}>incidents.csv</a> | ||
{% endif %} | ||
|
||
</p> | ||
{% endfor %} | ||
<!--/div--> | ||
</div> | ||
|
||
{% endblock %} |
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