Skip to content

Commit

Permalink
Merge branch 'hotfix/redirect-mitigation' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Vraj Mohan committed Nov 3, 2017
2 parents e9ef001 + 2e6d6ec commit ef0f644
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fec/data/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,10 @@ def committee(request, committee_id):
# If there's no reports, find the first year with reports and redirect there
for c in sorted(committee['cycles'], reverse=True):
financials = api_caller.load_cmte_financials(committee['committee_id'], cycle=c)
if financials['reports']:
return redirect(
url_for('committee_page', c_id=committee['committee_id'], cycle=c)
)
# if financials['reports']:
# return redirect(
# url_for('committee_page', c_id=committee['committee_id'], cycle=c)
# )

# If it's not a senate committee and we're in the current cycle
# check if there's any raw filings in the last three days
Expand Down

0 comments on commit ef0f644

Please sign in to comment.