Skip to content

Commit

Permalink
Merge pull request #184 from CityOfPhiladelphia/main
Browse files Browse the repository at this point in the history
gets next election day from new api https://admin-vote.phila.gov/wp-j…
  • Loading branch information
ajrothwell authored Mar 8, 2024
2 parents bd73abb + 4988e73 commit d41f40e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/data-sources/election-next.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
export default {
id: 'nextElectionAPI',
type: 'http-get',
url: 'https://apis.philadelphiavotes.com/election',
// url: 'https://apis.philadelphiavotes.com/election',
url: 'https://admin-vote.phila.gov/wp-json/votes/v1/election',
options: {
},
success: function(data) {
Expand Down
2 changes: 1 addition & 1 deletion src/topics/voting.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default {
titleBackground: '#2176d2',
value: function(state) {
// return 'voting.topic.badge1.content';
return format(parseISO(state.sources.nextElectionAPI.data.election_date), 'MMMM d, yyyy');
return format(parseISO(state.sources.nextElectionAPI.data.election_count_down_settings.election_day), 'MMMM d, yyyy');
},
}, // end slots
}, // end of badge
Expand Down

0 comments on commit d41f40e

Please sign in to comment.