Skip to content

Commit

Permalink
Use new entities structure
Browse files Browse the repository at this point in the history
As mentioned in mozilla-services/shavar-prod-lists#223 we now have a new structure on entities list
  • Loading branch information
say-yawn committed Jul 10, 2020
1 parent 9674dc9 commit 6db9a5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lists2safebrowsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,9 @@ def get_entity_lists(config, section, chunknum):
output_file, log_file = get_output_and_log_files(config, section)

# download and load the business entity oriented whitelist
whitelist = load_json_from_url(config, section, "entity_url")
whitelist = load_json_from_url(
config, section, "entity_url"
).pop('entities')

if channel_needs_separation and list_needs_separation:
google_entitylist = {}
Expand Down

0 comments on commit 6db9a5c

Please sign in to comment.