Skip to content

Commit

Permalink
Fetch more per page
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtOfCode- committed Oct 30, 2019
1 parent 761ab80 commit 1c4d58e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metasmoke_cache.py
Expand Up @@ -141,5 +141,5 @@ def dump_cache_data():

def is_website_whitelisted(domain):
whitelist = MetasmokeCache.fetch_from_api('whitelisted-domains', '/api/v2.0/tags/name/whitelisted/domains',
params={'filter': 'HGGGFLHIHKIHOOH'}, expiry=3600)
params={'filter': 'HGGGFLHIHKIHOOH', 'per_page': '100'}, expiry=3600)
return len(whitelist) > 0 and isinstance(whitelist[0], dict) and domain in map(lambda x: x['domain'], whitelist)

0 comments on commit 1c4d58e

Please sign in to comment.