lister.py: add conffile setting to en/disable JSON caching
This commit is contained in:
parent
7f706e4fa8
commit
d3e542ab7e
2 changed files with 10 additions and 3 deletions
|
@ -137,7 +137,7 @@ def fetch(conf, mk_session, min_id=None, max_id=None):
|
|||
since = next_id - 1 # github API ?since=... is '>' strict, not '>='
|
||||
repos_res = gh_api_request('/repositories?since=%d' % since, **cred)
|
||||
|
||||
if 'cache_dir' in conf:
|
||||
if 'cache_dir' in conf and conf['cache_json']:
|
||||
save_http_response(repos_res, conf['cache_dir'])
|
||||
if not repos_res.ok:
|
||||
raise FetchError(repos_res)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue