Skip to content

Commit

Permalink
Add web, not api
Browse files Browse the repository at this point in the history
  • Loading branch information
reginafcompton committed Feb 11, 2019
1 parent 9a57e80 commit c98c6f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions councilmatic_core/management/commands/import_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -965,12 +965,12 @@ def insert_raw_bills(self, delete=False):
bill_info = json.loads(f.read())


# Add the API source, if available, which allows for easier debugging
# Otherwise, assume that the 'web' source is available
# Add the web source, if available.
# Otherwise, assume that the 'api' source is available and add that.
source_url = None
source_note = None
for source in bill_info['sources']:
if source['note'] == 'api':
if source['note'] == 'web':
source_url = source['url']
source_note = source['note']
break
Expand Down

0 comments on commit c98c6f9

Please sign in to comment.