Skip to content

Commit

Permalink
fixed incorrect api call
Browse files Browse the repository at this point in the history
  • Loading branch information
tonmcg committed Dec 3, 2024
1 parent 00a57ad commit ff1d0f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ def fetch_dc_results(ward_number):
url = f'https://electionresults.dcboe.org/ward/getWard/2024-General-Election/{ward_number}'
response = requests.get(url)
data = response.json()
return data.LastUpdated
return data

@app.route('/dc/results/lastUpdated', methods=['GET'])
def fetch_dc_result_date():
url = f'https://electionresults.dcboe.org/electionResults/getElectionInfo/2024-General-Election'
response = requests.get(url)
data = response.json()
return data
return data.LastUpdated

@app.route('/ak/results/statewide', methods=['GET'])
def fetch_ak_results():
Expand Down

0 comments on commit ff1d0f1

Please sign in to comment.