Refactored download helper to have all extra options go through options hash, documented each option

This commit is contained in:
Eric Mill
2013-01-20 15:16:54 -05:00
parent 04322a0029
commit 782af88e85
7 changed files with 47 additions and 30 deletions

View File

@@ -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"}