mirror of
https://github.com/unitedstates/congress.git
synced 2025-12-25 01:00:04 -05:00
Refactored download helper to have all extra options go through options hash, documented each option
This commit is contained in:
@@ -16,7 +16,7 @@ def fetch_amendment(amdt_id, options):
|
||||
body = utils.download(
|
||||
amdt_url_for(amdt_id),
|
||||
amdt_cache_for(amdt_id, "information.html"),
|
||||
options.get('force', False))
|
||||
options)
|
||||
|
||||
if not body:
|
||||
return {'saved': False, 'ok': False, 'reason': "failed to download"}
|
||||
|
||||
Reference in New Issue
Block a user