Skip to content

Commit 8c14c73

Browse files
author
Joe Kohlmann
committed
* Fixed display of HTML entities in articles timeline
* Added requirements and runtime file in preparation for Heroku deployment
1 parent aa4a004 commit 8c14c73

File tree

7 files changed

+16
-6
lines changed

7 files changed

+16
-6
lines changed

flask/static/cache/ArticleSearch/3dae225b3ebdd483.json

+1-1
Large diffs are not rendered by default.

flask/static/cache/ArticleSearch/609587f686d63372.json

+1-1
Large diffs are not rendered by default.

flask/static/cache/ArticleSearch/61c5cce1ba03475e.json

+1-1
Large diffs are not rendered by default.

flask/static/cache/queries.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
["persons:(\"Christie, Christopher J\")", "persons:(\"Walker, Scott K\")", "glocations:(\"Madison (Wis)\")", "persons:(\"JOBS, STEVEN P\") OR persons:(\"Jobs, Steve\")", "organizations:(\"Twitter\")", "subject:(\"Whistle-Blowers\")", "persons:(\"Manning, Bradley E\")", "organizations:(\"MICROSOFT CORP\") OR organizations:(\"Microsoft Corporation\")", "persons:(\"Bell, Kristen\")", "creative_works:(\"Veronica Mars (TV Program)\") OR creative_works:(\"Veronica Mars (Movie)\")", "organizations:(\"KICKSTARTER\") OR organizations:(\"KICKSTARTER.COM\")", "organizations:(\"Facebook Inc\") OR organizations:(\"FACEBOOK.COM\")", "organizations:(\"Google Inc\")", "subject:(\"Wearable Computing\")", "persons:(\"Putin, Vladimir V\")", "organizations:(\"APPLE COMPUTER INC\") OR organizations:(\"APPLE INC\")", "subject:(\"Patient Protection and Affordable Care Act (2010)\")", "organizations:(\"University of Washington\")", "organizations:(\"University of Wisconsin-Madison\")", "organizations:(\"National Security Agency\")", "organizations:(\"WIKILEAKS\")", "persons:(\"Snowden, Edward J\")", "persons:(\"Assange, Julian\")", "glocations.contains:(\"Seattle\")", "glocations.contains:(\"Madison\")", "persons:(\"Obama, Barack\")", "subject:(\"Super Bowl\")", "organizations:(\"HARVARD UNIVERSITY\")"]
1+
["subject:(\"Presidential Election of 2016\")", "glocations:(\"Guantanamo Bay Naval Base (Cuba)\")", "glocations:(\"Iraq\")", "organizations:(\"Islamic State in Iraq and Syria (ISIS)\")", "organizations:(\"Amazon.com Inc\")", "subject:(\"Privacy\")", "organizations:(\"Reddit Inc\")", "glocations:(\"Silicon Valley (Calif)\")", "glocations.contains:(\"San Francisco\")", "subject:(\"Police Brutality, Misconduct and Shootings\")", "glocations:(\"Ferguson (Mo)\")", "persons:(\"Clinton, Hillary Rodham\")", "subject:(\"UNITED STATES POLITICS AND GOVERNMENT\")", "organizations:(\"TWITTER\")", "subject:(\"News and News Media\")", "persons:(\"Christie, Christopher J\")", "persons:(\"Walker, Scott K\")", "glocations:(\"Madison (Wis)\")", "persons:(\"JOBS, STEVEN P\") OR persons:(\"Jobs, Steve\")", "organizations:(\"Twitter\")", "subject:(\"Whistle-Blowers\")", "persons:(\"Manning, Bradley E\")", "organizations:(\"MICROSOFT CORP\") OR organizations:(\"Microsoft Corporation\")", "persons:(\"Bell, Kristen\")", "creative_works:(\"Veronica Mars (TV Program)\") OR creative_works:(\"Veronica Mars (Movie)\")", "organizations:(\"KICKSTARTER\") OR organizations:(\"KICKSTARTER.COM\")", "organizations:(\"Facebook Inc\") OR organizations:(\"FACEBOOK.COM\")", "organizations:(\"Google Inc\")", "subject:(\"Wearable Computing\")", "persons:(\"Putin, Vladimir V\")", "organizations:(\"APPLE COMPUTER INC\") OR organizations:(\"APPLE INC\")", "subject:(\"Patient Protection and Affordable Care Act (2010)\")", "organizations:(\"University of Washington\")", "organizations:(\"University of Wisconsin-Madison\")", "organizations:(\"National Security Agency\")", "organizations:(\"WIKILEAKS\")", "persons:(\"Snowden, Edward J\")", "persons:(\"Assange, Julian\")", "glocations.contains:(\"Seattle\")", "glocations.contains:(\"Madison\")", "persons:(\"Obama, Barack\")", "subject:(\"Super Bowl\")", "organizations:(\"HARVARD UNIVERSITY\")"]

flask/static/js/main.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -300,14 +300,14 @@ var ArticlesTimeline = function(data, $html) {
300300
var articleHeadlines = rectInsides
301301
.append("h3")
302302
// .attr("data-headline", function(d) { return d.main_headline; })
303-
.text(function(d) { return d.main_headline; })
303+
.html(function(d) { return d.main_headline; })
304304
.style("text-transform", "capitalize")
305305
;
306306

307307
// Article Snippets
308308
var articleSnippets = rectInsides
309309
.append("p")
310-
.text(function(d) { return d.snippet; })
310+
.html(function(d) { return d.snippet; })
311311
;
312312

313313
// Article Dates

requirements.txt

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Flask==0.10.1
2+
Jinja2==2.7.3
3+
MarkupSafe==0.23
4+
Werkzeug==0.10.1
5+
itsdangerous==0.24
6+
python-dateutil==2.4.1
7+
requests==2.6.0
8+
six==1.9.0
9+
wsgiref==0.1.2

runtime.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python-2.7.8

0 commit comments

Comments
 (0)